Vcl.ImgList.TCustomImageList.GetIcon

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure GetIcon(Index: Integer; Image: TIcon); overload;
procedure GetIcon(Index: Integer; Image: TIcon; ADrawingStyle: TDrawingStyle;  AImageType: TImageType); overload;

C++

void __fastcall GetIcon(int Index, Vcl::Graphics::TIcon* Image)/* overload */;
void __fastcall GetIcon(int Index, Vcl::Graphics::TIcon* Image, TDrawingStyle ADrawingStyle, TImageType AImageType)/* overload */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList TCustomImageList

説明

Index で指定したイメージを,Image パラメータにアイコンとして返します。

GetIcon メソッドを呼び出すと,イメージリスト内の特定のイメージをアイコンとして取得できます。

Index は,目的のイメージを示します。0 は最初のイメージ,1 は 2 番めのイメージを表します。

Image は,新しいイメージを受け取る TIcon オブジェクトです。

ADrawingStyle は,さまざまな効果を出すためにイメージとブレンドする色の量を示します。ADrawingStyle パラメータをとらないバージョンで GetIcon を呼び出す場合,DrawingStyle プロパティの値が使用されます。

AImageType は,マスクを使ってイメージをレンダリングするかどうかを指定します。AImageType パラメータをとらないバージョンで GetIcon を呼び出す場合,ImageType プロパティの値が使用されます。

関連項目