TPixelFormat enumeration
Represents storage formats for pixels in image data.
Declaration
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
pfDevice | Indicates that the source device determines the pixel format. |
pf1bit | 1 bit per pixel. Monochrome. |
pf4bit | 4 bits per pixel. 16 colors. |
pf8bit | 8 bits per pixel. 256 colors. |
pf15bit | 15 bits per pixel. 32,768 colors. Also called High Color. |
pf16bit | 16 bits per pixel. 65,536 colors. Also referred to as High Color. |
pf24bit | 24 bits per pixel. 16,777,216 colors. Also called TrueColor. |
pf32bit | 32 bits per pixel. 4,294,967,296 colors. Not a common pixel format. |
pfCustom | Uses a pixel format other than the defined values. |
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
