DelphiFAQ Home Search:
General :: Windows :: Programming :: Windows with Delphi :: Windows Graphics
Graphics programming under Windows with Delphi.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

Creating icons with more than 16 colors

Question:

I am creating icons from bitmaps in full color, however, when saving the image (which is displayed in full color and can be assigned to the application in full color), SaveToFile() seems to reduce the icon to 16 colors.

Answer:

This depends on the VCL's TIcon class. It cannot handle more than 16 colors for TIcon if you want to save it.
You can try the graphic32 library:

The graphic32 home page is here: http://graphics32.org/wiki/

The source is on SourceForge: http://sourceforge.net/projects/graphics32


Generated 12:02:38 on Jun 24, 2018