RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPicture.RegisterFileFormatRes Method

Registers a new TGraphic class for use in the LoadFromFile method.

Pascal
class procedure RegisterFileFormatRes(const AExtension: String; ADescriptionResID: Integer; AGraphicClass: TGraphicClass);
C++
__fastcall RegisterFileFormatRes(const AnsiString AExtension, int ADescriptionResID, TGraphicClass AGraphicClass);

Use RegisterFileFormatRes by specifying a string resource. 

The AExtension parameter specifies the three-character system file extension to associate with the graphic class (for example, "bmp" is associated with TBitmap).  

The ADescriptionResID parameter specifies the resource ID for a description of the graphic, which then appears in the drop down list of the dialog box (for example, "Bitmaps" is the description of TBitmap).  

The AGraphicClass parameter registers the new graphic class to associate with the file format. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!