www.gnostice.com 

ColorType property (TgtPNGEngine)

TgtPNGEngine

Top 

 

property ColorType: TgtPNGColorType;

 

Description

Use this property to set color type of the image. It can be any one of ctGrayscale, ctRGB, ctRGBA or ctGrayAlpha.

 

TgtPNGColorType = (ctGrayscale, ctRGB, ctRGBA, ctGrayAlpha)

 

Value                Meaning

ctGrayscale        Color format of GrayScale

ctRGB                Color format of RGB

ctRGBA        Color format of RGBA

ctGrayAlpha        Color format of GrayAlpha

 

Example:

 

Delphi:

gtPNGEngine1.ColorType := ctRGBA;

 

C++Builder:

gtPNGEngine1->ColorType = ctRGBA;