Bug Report B143725
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

RAD Studio 2009 and later - Make TdxPNGImage class registration optional for loading PNG images

Delphi 2010 always uses the TdxPNGImage class for loading PNG images (this corrupts form streaming)

created 15 years ago

TPicture.RegisterFileFormat('PNG', 'PNG graphics from DevExpress', TdxPNGImage);
Causes problems with delphi form streaming.
I have created some components using TPNGImage, when assign a PNG picture @ design delphi saves the png image using TdxPNGImage, when running the application without using any of your components the images are empty since the TdxPNGImage is not registered and i am not using any of your sources.
I think that you should not register TdxPNGImage for hanlind png objects for delphi 2009+, let delphi do its work. I think that this issue should affect many of the users running d2009+ and the only work around i can see is to use your gdiplus library which is not an option for me as well

Show previous comments (10)
NA NA
nick ameladiotis 15 years ago

    > Discontinuing this would be a breaking change for our users
    For delphi 2009+ it would not.
    The only problem raised is when loading forms @ design time and with the TdxPngImage not register form streaming will fail and forms will loose their images. But still there is a solution for this. You can simple register the class with empty file description and extention this will result form streaming to work as expected in other words for delphi 2009+ instead of
    TPicture.RegisterFileFormat('PNG', 'PNG graphics from DevExpress', TdxPNGImage);
    you make a call to
    TPicture.RegisterFileFormat('', '', TdxPNGImage);

    Serge (DevExpress Support) 15 years ago

      Nick,
      Thank you for the ideas. We'll take them into account when discussing this report.
      Regards,
      Serge

      Serge (DevExpress Support) 15 years ago

        Nick,
        We've decided to make the current behavior optional. The functionality will allow you to update the DEFINE directive in our units as your needs dictate, and rebuild our packages using the installer. I've created a new suggestion on your behalf: RAD Studio 2009 and later - Make TdxPNGImage class registration optional for loading PNG images
        Thanks,
        Serge

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.