Skip to main content

TcxGridChartView.CreateImage(TGraphicClass,Integer,Integer) Method

Creates an image of the Chart View.

Declaration

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