Vcl.GraphUtil.DrawTransparentBitmap
Delphi
procedure DrawTransparentBitmap(Source: TBitmap; Destination: TCanvas; DestRect: TRect; Opacity: Byte);
procedure DrawTransparentBitmap(Source: TBitmap; SourceRect: TRect; Destination: TCanvas; DestRect: TRect; Opacity: Byte);
C++
extern DELPHI_PACKAGE void __fastcall DrawTransparentBitmap(Vcl::Graphics::TBitmap* Source, Vcl::Graphics::TCanvas* Destination, const Winapi::Windows::TRect &DestRect, System::Byte Opacity)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.GraphUtil.pas Vcl.GraphUtil.hpp |
Vcl.GraphUtil | Vcl.GraphUtil |
Description
Draws a transparent bitmap.
DrawTransparentBitmap draws the specified Source bitmap to the Destination canvas, stretching to fit the DestRect rectangle. If the Source bitmap has PixelFormat pf32bit, it uses the alpha channel to blend. The second overload draws only a subsection of the Source bitmap specified by SourceRect.
Source represents the source bitmap.
SourceRect, only present in the second form, represents the source rectangle.
Destination represents the TCanvas used for drawing.
DestRect represents the destination rectangle.
Opacity represents the alpha(opacity) value.