Vcl.Graphics.GraphicFilter

From RAD Studio API Documentation
Jump to: navigation, search

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 filter string for the Filter property of Open or Save dialog boxes.

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.

GraphicFilter returns info based on the registered graphic formats. To include JPG, PNG, GIF file formats, add corresponding units—Vcl.Imaging.GIFImg, Vcl.Imaging.jpeg, or Vcl.Imaging.pngimage—into uses clause.

All file mask is added if there are two or more extensions.

Graphic class Filter string returned

TGraphic

All (*.png;*.jpg;*.jpeg;*.gif;*.bmp;*.ico;*.emf;*.wmf;*.tif;*.tiff)|*.png;*.jpg;*.jpeg;*.gif;*.bmp;*.ico;.emf;.wmf;.tif;.tiff|Portable Network Graphics (*.png)|*.png|JPEG Image File (*.jpg)*|.jpg|JPEG Image File (*.jpeg)|*.jpeg|GIF Image (*.gif)|*.gif|Bitmaps (*.bmp)|*.bmp|Icons (*.ico)|*.ico|Enhanced Metafiles (*.emf)|*.emf|Metafiles (*.wmf)|*.wmf|TIFF Images (*.tif)|*.tif|TIFF Images (*.tiff)|*.tiff

TBitmap

Bitmaps (.bmp)|.bmp

TIcon

Icons(*.ico)|*.ico

TMetafile

All (.emf;*.wmf)|*.emf;*.wmf|Enhanced Metafiles (.emf)|*.emf|Metafiles (*.wmf)|*.wmf

TJPEGImage

All (.jpg;*.jpeg)|*.jpg;*.jpeg|JPEG Image File (.jpg)|*.jpg|JPEG Image File (*.jpeg)|*.jpeg

TGIFImage

GIF Image (.gif)|.gif

TPngImage

Portable Network Graphics (*.png)|*.png

See Also

Code Examples