Vcl.Graphics.GraphicExtension

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

Delphi

function GraphicExtension(GraphicClass: TGraphicClass): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GraphicExtension(TGraphicClass GraphicClass);

プロパティ

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

説明

グラフィック オブジェクトのデフォルトのファイル名拡張子を返します。

GraphicExtension を呼び出すと、[開く]、[画像を開く]、[画像を保存]、または [保存] ダイアログの DefaultExt プロパティのデフォルト拡張子値を取得できます。GraphicExtension は GraphicClass パラメータで指定されたグラフィック オブジェクトの型のデフォルト拡張子を返します。Delphi では、TGraphicClass 型は TGraphic の下位のクラス型です。

以下に各組み込みグラフィック クラスごとに返されるファイル拡張子を示します。



グラフィック クラス ファイル拡張子

TBitmap

bmp

TIcon

ico

TMetafile

emf



カスタム グラフィック クラスがファイル拡張子を登録すると、GraphicExtension は、カスタム グラフィック クラスが引数として渡されるときにその拡張子を返します。

関連項目