[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
The color of the Pixels located at the specified position.
Source position: graphics.pp line 1174
public property TCanvas.Pixels[X: Integer,Y: Integer] : TColor |
Pixels is an indexed TColor color property which provides access to the color for pixels on the drawing surface. The X and Y arguments provide the horizontal and vertical offsets on the drawing surface.
Read and write access to color values in the property requires a valid Handle (or device context) for the canvas. RequiredState is called, and allocates a Handle if one does not already exist. An EInvalidGraphicOperation exception may be raised in the method if a valid handle cannot be acquired.
Methods in the widgetset class are called to read or write the pixel color using the Handle.
When setting a new color for a pixel, the Changing method is called to signal the OnChanging event handler (when assigned). After setting the new color, the Changed method is called to signal the OnChange event handler (when assigned).
|
Handle (or device context) for the drawing surface. |
|
|
Ensures that all handles needed for the canvas are valid. |
|
|
Signals the OnChanging event handler (when assigned). |
|
|
Signals the OnChange event handler (when assigned). |
|
|
Event handler signalled prior to changing the canvas. |
|
|
Event handler signalled after a change to the canvas. |
|
|
Color type used by most LCL drawing functions. |
|
|
EInvalidGraphicOperation - exception handler for invalid graphic operation. |
Version 3.2 | Generated 2024-02-25 | Home |