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.
Note |
---|
This method is not an exact duplicate as DrawBitmap doesn't "flip" the bitmap if the Rect is "backward." |
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
Dest
Type: TRect
Bitmap
Type: TBitmap
Source
Type: TRect
Color
Type: TAlphaColor
Opacity
Type: Single