How to use transparent PNG icons with Delphi ImageList

http://www.aha-soft.com/faq/delphi-imagelist-png.htm

Query:

"Embarcadero Delphi ImageList does not show transparent PNG icons correctly. How to fix it?".

Solution:

If you want to use 32-bit (24-bit + alpha channel) PNG icons within Delphi TImageList,

you need to set the following property values for TImageList.

  • DrawingStyle: dsTransparent
  • ColorDepth: cd32Bit 

Note: Images must be transparent already. 

posted @ 2014-10-22 10:13  IAmAProgrammer  阅读(1047)  评论(0编辑  收藏  举报