|
RV_RegisterPngGraphic Procedure |
Top Previous Next |
|
Registers PNG graphic class for using in TRichView. Unit CRVData. procedure RV_RegisterPngGraphic(ClassType: TGraphicClass); (introduced in version 10) Parameter ClassType – class representing PNG image.
Call this procedure one time when the application starts (for example, in the initialization section of the main form's unit). If PNG class is registered with this procedure, TRichView controls can save and load PNG images in RTF files. Optionally, bitmaps can be saved as PNG too, see TCustomRichView.RTFOptions property (rvrtfPNGInsteadOfBitmap). Delphi does not include PNG class, so use third party classes. See also: ▪How to use third party graphic formats in TRichView Web links: ▪Gustavo Huffenbacher Daud's TPngObject: download file, free PNG graphic class (for Delphi/C++Builder 2009, use TPngImage included in VCL). |