Vcl.Graphics.TPixelFormat
Delphi
TPixelFormat = (pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom);
C++
enum DECLSPEC_DENUM TPixelFormat : unsigned char { pfDevice, pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit, pfCustom };
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| enum | public | Vcl.Graphics.pas Vcl.Graphics.hpp | Vcl.Graphics | Vcl.Graphics | 
Description
TPixelFormat specifies the format of a bitmap.
TPixelFormat can have one of the following values:
| Value | Meaning | 
|---|---|
| pfDevice | The bitmap is stored as a device-dependent bitmap. | 
| pf1bit | The bitmap is a device-independent bitmap with one bit per pixel (black and white palette) | 
| pf4bit | The bitmap is a device-independent bitmap that uses a 16-color palette. | 
| pf8bit | The bitmap is a device-independent bitmap that uses a 256color palette. | 
| pf15bit | The bitmap is a device-independent true-color bitmap that uses 15 bits per pixel (RGB compression). | 
| pf16bit | The bitmap is a device-independent true-color bitmap that uses 16 bits per pixel (bitfield compression). | 
| pf24bit | The bitmap is a device-independent true-color bitmap that uses 24 bits per pixel. | 
| pf32bit | The bitmap is a device-independent true-color bitmap that uses 32 bits per pixel (RGB compression). | 
| pfCustom | The bitmap uses some other format. TBitmap does not support pfCustom. |