RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Graphics.GraphicFileMask Function

Returns a file mask that specifies the valid extensions for a graphic class.

Pascal
function GraphicFileMask(GraphicClass: TGraphicClass): string;
C++
AnsiString GraphicFileMask(TGraphicClass GraphicClass);

Graphics

Call GraphicFileMask to obtain a mask to determine the file extensions associated with a graphic class. 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:

Graphic class 
Filter string returned 
*.bmp  
TIcon  
*.ico  
*.emf;*.wmf  
*.bmp;*.ico;*.emf;*.wmf  
;*.bmp;*.png;*.xpm*.ico  

 

GraphicExtension 

GraphicFilter 

TFilterComboBox 

TPicture

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!