rvico TRichView Reference | Global procedures and functions

RV_RegisterPngGraphic Procedure

Top  Previous  Next

Registers PNG graphic class for using in TRichView.

Unit RVMisc.

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: pngdelphi.sourceforge.net, free PNG graphic class.


RichView © Sergey Tkachenko