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

TcxGridChartView.CreateImage(TGraphicClass,Integer,Integer) Method

Creates an image of the Chart View.

#Declaration

Delphi
function CreateImage(AGraphicClass: TGraphicClass; AWidth: Integer = 0; AHeight: Integer = 0): TGraphic;

#Parameters

Name Type
AGraphicClass TGraphicClass
AWidth Integer
AHeight Integer

#Returns

Type
TGraphic

#Remarks

Call the CreateImage function to obtain a graphical representation (an image of the specified graphic class) of the Chart View. The AGraphicClass parameter specifies the graphic class (either a bitmap or a metafile). The optional AWidth and AHeight parameters specify the width and the height of the resulting image. When the values of these parameters are equal to 0, the corresponding dimension of the image is calculated using the View’s visual parameters. The CreateImage function returns nil for pattern Views and the graphic classes which do not inherit from the TBitmap or TMetafile classes.

See Also