Skip to main content
Pie
ra0

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Delphi
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.

See Also