Online Documentation for Advanced PDF Generator for RAD Studio

TRenderImage.Create

 

TRenderImage


constructor Create(_graphic: TGraphic; _Raster: Boolean = false); overload;

constructor Create(_Width: Integer; _graphic: TGraphic; _Raster: Boolean = false); overload;

constructor Create(_Width, _Height: Integer; _graphic: TGraphic; _Raster: Boolean = false); overload;

 

Description

Use this method to create new instances of the TRenderImage class. The _graphic parameter is a TGraphic object containing an image you want to add. If the _Raster parameter is set to True, then any JPEG or meta images would be converted to bitmap images. You can also define the image size with _Width and _Height parameters. If only the _Width parameter is set, then the image would be scaled automatically.