TcxCanvas.TransparentDraw(Integer,Integer,TBitmap,Byte,TBitmap) Method
Blends two bitmaps according to the specified alpha and draws the resulting image on the canvas.
Declaration
procedure TransparentDraw(X: Integer; Y: Integer; ABitmap: TBitmap; AAlpha: Byte; ABackground: TBitmap = nil);
Parameters
Name | Type |
---|---|
X | Integer |
Y | Integer |
ABitmap | TBitmap |
AAlpha | Byte |
ABackground | TBitmap |
Remarks
Call this procedure and pass a bitmap container as the ABitmap parameter to draw its content with transparency effects at the canvas point whose coordinates are passed as the X and Y parameters.
The ABackground optional parameter value defines how the TransparentDraw procedure works:
The parameter is omitted. The source bitmap (ABitmap) blends with the canvas according to the specified alpha value (AAlpha).
The parameter accepts a bitmap container with another image. The TransparentDraw procedure applies the specified alpha value to the source image, blends it with the specified background image, and draws the result at the designated point on the canvas.
Note
The specified alpha value determines the same opacity level for all pixels of the source bitmap.