Ticket T803894
Visible to All Users

Images become TdxPNGImage instead of TPNGImage types

created 6 years ago (modified 6 years ago)

[DevExpress Support Team: CLONED FROM S34199: RAD Studio 2009 and later - Make TdxPNGImage class registration optional for loading PNG images]

I, too, am having an issue. Our images are becoming TdxPNGImage types instead of TPNGImage types.

The problem we are having is that the forms were made years ago and all the images are TPNGImage types, but the newer TdxPNGImage will never appear on our forms.

I've tried the method for removing the DXREGISTERPNGIMAGE defined in cxVer.inc, but that has not corrected the issue. Images still show up as TdxPNGImage types.

I've looked into dxGDIPlusClasses.pas and I noticed that there is an IFNDEF statement that still registers the PNG files as a smart image! So damned if you do, damned if you don't.

Still need a workaround. Tried a few things but to no avail and I'm at my wits end on how to get my PNG images to appear in the object inspector as TPngImage types instead of TdxPngImage types.

Even though I have DevExpress 17.1.8 installed and followed the procedure to allow for standard PNG files, it just doesn't respect it. This is a new machine, so there are no other VCL DevExpress components that were previously installed. However, I also have DevExpress installed for .NET, but I would think the two would not in any way intermingle (I can see the code bases exist in two separate folders). So, why is this not working as indicated when removing the DEFINE from cxVer.inc for me in the Embarcadero platform (Berlin 10.1 Update 2)?

Thanks in advance for any help you can provide.

Show previous comments (2)
DevExpress Support Team 6 years ago

    Thank you for the clarification.
    I need to note that old images will use those graphic class that loaded them. However, for new images our class will not be used.

      Is there still no fix for this as I want to use smart images in a DevEx project but not in a TMS Web project that dos not use any DevEx controls.

      DevExpress Support Team 5 years ago

        Hello Ken,

        We haven't changed this behavior. However, we've discussed it with our developers again and will consider the possibility to resolve this issue in the future.

        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.