RAD Studio VCL Reference
|
Registers a new TGraphic class for use in the LoadFromFile method.
class procedure RegisterFileFormatRes(const AExtension: String; ADescriptionResID: Integer; AGraphicClass: TGraphicClass);
__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) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|