Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCanvas.Pixels Property

Provides access to any pixel within the clip area on the canvas.

#Declaration

Delphi
property Pixels[X: Integer; Y: Integer]: TColor write;

#Property Value

Type Description
TColor

A pixel color.

#Remarks

Pass pixel coordinates as the X and Y parameters to identify or change color of any pixel within the clip area. The Pixels property returns -1 if the specified pixel is outside the clip area or the device context does not support indexed access to pixels on the canvas.

Indexed pixel access is a slow operation. To draw individual pixels on the canvas, call the FillPixel procedure instead.

Note

The Pixels property maps to the Pixels property of the underlying canvas.

See Also