Graphics.GraphicFilter

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Graphics.pas

	function GraphicFilter(GraphicClass: TGraphicClass): string;


Unit: Graphics

Type: function

Visibility: public

C++ Information

From Graphics.hpp

	System::UnicodeString __fastcall GraphicFilter(System::TMetaClass * GraphicClass);


Unit: Graphics

Type: function

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

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



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 Samples


Personal tools
Translations
Newest Version