Skip to content
GR32>TBitmap32>PixelProperty

TBitmap32.Pixel

Provides 2D array property access to individual 32-bit ARGB pixel values by pixel coordinate (X, Y).

Declaration

pascal
property Pixel[X, Y: Integer]: TColor32 read GetPixel write SetPixel; default;

Remarks ​

  • Pixel is the default indexed property of TCustomBitmap32 and TBitmap32, allowing direct array access syntax like Bmp[X, Y].
  • Reading or writing Pixel performs unsafe direct buffer array indexing without clip boundary checking (Bits[X + Y * Width]).
  • For safe pixel access with boundary checking against ClipRect, use PixelS[X, Y].
  • For ultra-fast pixel pointers without bounds checks, use PixelPtr[X, Y] or direct scanline access via ScanLine[Y].