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

TdxGPImage.CreateCanvas Method

Creates a GDI+ canvas filled with the stored image.

#Declaration

Delphi
function CreateCanvas: TdxGPCanvas;

#Returns

Type
TdxGPCanvas

#Remarks

Call this function to create a new GDI+ API-based canvas and draw an image within the container on it. The created canvas matches the drawn image in size. If the container stores a vector image, the CreateCanvas function calls the ConvertToBitmap procedure to rasterize the image.

DevExpress controls call the CreateCanvas function to draw translucent images in a separate layer on top of a GDI-based canvas in GDI render mode.

See Also