Draws the graphic specified by the Bitmap parameter in the rectangle specified by the Rect parameter.
Call StretchDraw to draw a graphic on the canvas so that the image fits in the specified rectangle. This may involve changing magnification and/or aspect ratio.
To render the graphic in its natural size, use the
Draw method, instead.
Note |
---|
Unlike the VCL StretchDraw method which uses TGraphic, the FMX StretchDraw method can only draw TBitmap. |
Tip |
---|
This FMX version of the method adds a default Opacity parameter at the end of the parameters. This allows you to take advantage of the FMX ability to draw transparently to the canvas. Alternatively, don't set this parameter and it works exactly like the VCL TCanvas method. |
Namespace: FMX.RS.CanvasHelper
Delphi |
public |
Parameters
Rect
Type: TRect
Bitmap
Type: TBitmap
Opacity
Type: Single