Vcl.Graphics.GraphicFilter
Delphi
function GraphicFilter(GraphicClass: TGraphicClass): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall GraphicFilter(TGraphicClass GraphicClass);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | Vcl.Graphics |
Description
Returns a file filter compatible with the Filter property of an Open or Save dialog.
Call GraphicFilter to obtain a value for the Filter property of an Open, Open Picture, Save Picture or Save dialog box. The GraphicClass parameter can specify one of these values: TBitmap, TGraphic, TIcon, TMetafile, or a user-defined descendant of TGraphic.
These are the strings that are returned for each built-in graphics class when the AllFilter parameter is true. (When AllFilter is false, the section labelled "All" is omitted):
Graphic class | Filter string returned |
---|---|
TBitmap |
Bitmaps (*.bmp;*.png;*.xpm)|*.bmp;*.png;*.xpm |
TIcon |
Icons (*.ico)|*.ico |
TGraphic |
All (*.bmp;*.png;*.xpm*.ico)|*.bmp;*.png;*.xpm*.ico|Bitmaps (*.bmp;*.png;*.xpm)|*.bmp;*.png;*.xpm|Icons (*.ico)|*.ico |
Graphic class | Filter string returned |
---|---|
TBitmap |
Bitmaps (*.bmp)|*.bmp |
TIcon |
Icons (*.ico)|*.ico |
TMetafile |
All (*.emf;*.wmf)|*.emf;*.wmf|Enhanced Metafiles (*.emf)|*.emf|Metafiles(*.wmf)|*.wmf |
TGraphic |
All (*.bmp;*.ico;*.emf;*.wmf)|*.bmp;*.ico;*.emf; *.wmf|Bitmaps (*.bmp)|*.bmp|Icons (*.ico)|*.ico|Enhanced Metafiles (*.emf)|*.emf|Metafiles(*.wmf)|*.wmf |
See Also
Code Examples