FMX.ImgList.TCustomImageList.Draw
Delphi
function Draw(const Canvas: TCanvas; const Rect: TRectF; const Index: Integer; const Opacity: Single = 1): Boolean;
C++
bool __fastcall Draw(Fmx::Graphics::TCanvas* const Canvas, const System::Types::TRectF &Rect, const int Index, const float Opacity = 1.000000E+00f);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.ImgList.pas FMX.ImgList.hpp |
FMX.ImgList | TCustomImageList |
Description
Draws an image from the Index
item, in the Destination collection, on the specified Canvas
.
Draw returns True
if the picture was drawn.
The following table shows the meaning of the input parameters of this method.
Parameter | Meaning |
Canvas
|
The canvas where the picture will be painted. |
Rect
|
The rectangle where the picture will be inscribed. |
Index
|
Zero-based ordinal number representing the image in the Destination collection. |
Opacity
|
The transparency of the picture being drawn. By default it is 1 , meaning 'completely not transparent'.
|