TcxImageCollection.Draw(TCanvas,TRect,Integer,Boolean,Boolean,Boolean) Method
Draws a stored image on a target VCL Canvas.
Declaration
procedure Draw(ACanvas: TCanvas; const R: TRect; AIndex: Integer; AStretch: Boolean = True; ASmoothResize: Boolean = False; AEnabled: Boolean = True); overload;
Parameters
Name | Type |
---|---|
ACanvas | TCanvas |
R | TRect |
AIndex | Integer |
AStretch | Boolean |
ASmoothResize | Boolean |
AEnabled | Boolean |
Remarks
The second overload paints the image within the R rectangle, using image adjustment options.
ACanvas specifies the canvas on which the image will be painted.
X and Y specify the coordinates of the image’s top-left corner.
R specifies the rectangle within which the image will be painted.
AIndex specifies the image’s index in the image collection.
AStretch specifies whether the image will fit R. Set AStretch to True, to zoom the image within R boundaries. Otherwise, it will be centered in the rectangle.
ASmoothResize specifies whether antialiasing will be applied when the image is zoomed in. Set ASmoothResize to True, to smooth the resulting image, when it’s scaled to the size of R.
AEnabled specifies whether the image is painted in full color or grayed out. Set AEnabled to False, to paint the image grayed out.