Vcl.Graphics.TPicture.RegisterFileFormatRes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure RegisterFileFormatRes(const AExtension: String;  ADescriptionResID: Integer; AGraphicClass: TGraphicClass);

C++

__classmethod void __fastcall RegisterFileFormatRes(const System::UnicodeString AExtension, int ADescriptionResID, TGraphicClass AGraphicClass);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TPicture

Description

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

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.

See Also