PixelPtr

Graphics32

TBitmap32.PixelPtr

property PixelPtr[X, Y: Integer]: PColor32; // read-only

Description

Converts coordinates of a pixel to its address in memory. Since TBitmap32 uses 32-bit DIBs, its memory is allocated as continuous string of 4-byte TColor32 values, starting at the top left corner.

Pixel with (0, 0) coordinates has the same address as specified in Bits property.

See Also

Bits, Pixel, ScanLine, TBitmap32, TColor32