Sign in Join
FPDoc Onlineexperiment

TPixelFormat enumeration

In unit Graphics

Represents storage formats for pixels in image data.

Declaration

pascal
TPixelFormat = (pfDevice,pf1bit,pf4bit,pf8bit,pf15bit,pf16bit,pf24bit,
 pf32bit,pfCustom)

Description

TPixelFormat is an enumerated type with values that represent the storage format for pixels in image data. In general, it indicates the number of bits required for each pixel in an image. It also determines the color spectrum and color depth available in image data.

TPixelFormat is the type used to implement the PixelFormat property in TRasterImage, TSharedCustomBitmap, TCustomBitmap, TSharedIcon, TIconImage, TCustomIcon, et. al.

Values

pfDeviceIndicates that the source device determines the pixel format.
pf1bit1 bit per pixel. Monochrome.
pf4bit4 bits per pixel. 16 colors.
pf8bit8 bits per pixel. 256 colors.
pf15bit15 bits per pixel. 32,768 colors. Also called High Color.
pf16bit16 bits per pixel. 65,536 colors. Also referred to as High Color.
pf24bit24 bits per pixel. 16,777,216 colors. Also called TrueColor.
pf32bit32 bits per pixel. 4,294,967,296 colors. Not a common pixel format.
pfCustomUses a pixel format other than the defined values.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.