Vcl.GraphUtil.DrawTransparentBitmap

From RAD Studio API Documentation
Jump to: navigation, search

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 System::Types::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.

The difference between the first and second form of DrawTransparentBitmap is that the second one allows an extra parameter, the specification of the source rectangle.

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.

See Also