Show/Hide Toolbars

RiverSoftAVG Products Help

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

TFMXCanvasHelper.BrushCopy(TRectF,TBitmap,TRectF,TAlphaColor,Single) Method

Scroll Prev Top Next More

Copies a portion of a bitmap onto a rectangle on the canvas,  replacing one of the colors of the bitmap with the brush of the canvas.
 
Use BrushCopy to achieve special effects such as making the copied image partially transparent.

Dest specifies the rectangular portion of the canvas that will receive the copy of the bitmap. Bitmap specifies the graphic to copy from. Source specifies the rectangular area of Bitmap to copy. The BrushCopy supports the transparency of the bitmap available in FMX. Color specifies the color in Bitmap to replace with the Brush of the canvas.

noteNote

This method is not an exact duplicate as DrawBitmap doesn't "flip" the bitmap if the Rect is "backward."

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

Dest

Type: TRectF

Bitmap

Type: TBitmap

Source

Type: TRectF

Color

Type: TAlphaColor

Opacity

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb