Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCommon > FMX.RS.CanvasHelper > Classes > TFMXCanvasHelper > Methods

TFMXCanvasHelper.StretchDraw(TRectF,TBitmap,Single) Method

Scroll Prev Top Next More

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.
 

noteNote

Unlike the VCL StretchDraw method which uses TGraphic, the FMX StretchDraw method can only draw TBitmap.

alert_noteTip

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

Parameters

Rect

Type: TRectF

Bitmap

Type: TBitmap

Opacity

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb