Ticket Q107250
Visible to All Users

Get image from TcxImageList

created 17 years ago

Hello,
how can I get the PNG image from an ImageList?
I used to work with TPngImageList and I had the code:
ImageList.PngImages.Items[4].PngImage
Now I switched to cxImageList and I can't find a way to work with it.
Thanks

Show previous comments (6)
Serge (DevExpress Support) 17 years ago

    George,
    I'm sorry if my answer was unclear, but do you actually need PNG images? Do the bitmaps, retrieved from a cxImageList, look wrong or lack any effect? Could you please elaborate on this. We always do our best to improve our components, and your input would be very helpful.
    Thanks in advance,
    Serge

      Hello,
      yes it has a great difference.
      Look at this Image in two version. PNG and BMP.
      With BMP it loses its alpha channel that's why I need the PNG object, not the TBitmap.

      Serge (DevExpress Support) 17 years ago

        Thank you for the information, George. From our point of view, using this bitmap in a graphical editor, to generate this picture, cannot correctly illustrate whether the bitmap is correct or not. If you would paint it on any canvas by means of the cxDrawImage procedure (cxGraphics.pas), you'd obtain the same results as in the bottom PNG image. I.e. using the bitmaps, fetched from a TcxImageList, as glyphs for VCL controls should give you the desired appearance. The easiest solution is to link a control to the ImageList, and specify its ImageIndex property value.
        If you wish to utilize these bitmaps for other purposes, please describe your goal in greater detail.
        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.