[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TRasterImage.PixelFormat

Storage format for the Pixels in the Image.

Declaration

Source position: graphics.pp line 1327

public property TRasterImage.PixelFormat : TPixelFormat
  read GetPixelFormat
  write SetPixelFormat
  default pfDevice;

Description

PixelFormat is a TPixelFormat property which contains the storage format for colors in Pixels. The default value is pfDevice and indicates that the source device determines the pixel format. The value is PixelFormat indicates the number of bits required to store the color, and the maximum number of colors allowed for a given pixel.

See TPixelFormat for the values in the enumeration and their meanings.

PixelFormat is essentially a read-only property in TRasterImage. The read and write access specifiers are declared as abstract virtual methods, and are overridden in descendent classes to access raw image data for a specific image format.

See also

TPixelFormat

  

Represents storage formats for pixels in image data.


Version 4.0 Generated 2025-05-03 Home