TcxImageCollectionItem.Draw(TCanvas,TRect,Boolean,Boolean,Boolean) Method
Paints the image on ACanvas.
Declaration
procedure Draw(ACanvas: TCanvas; const R: TRect; AStretch: Boolean = True; ASmoothResize: Boolean = False; AEnabled: Boolean = True); overload;
Parameters
Name | Type |
---|---|
ACanvas | TCanvas |
R | TRect |
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.
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.