Specifies the color of a specified pixel in this bitmap.
Namespace: RSGdiPlusGraphics
Delphi |
public |
Parameters
X
Type: Integer
Specifies the x-coordinate (column) of the pixel.
Y
Type: Integer
Specifies the y-coordinate (row) of the pixel.
Type: TRSGPColor
Depending on the format of the bitmap, the Pixel property might not return the same value as was set by using it. For example, if you set a pixel whose pixel format is 32bppPARGB, the RGB components are premultiplied. A retrieval of the Pixel property might return a different value because of rounding. Also, if you set a pixel on a bitmap whose color depth is 16 bits per pixel, information could be lost in the conversion from 32 to 16 bits, and a subsequent examination of the Pixel property might return a different value. |
Reference |