SelectRenderer
Rendering and printing
Description
Select the renderer to use during rendering. By default the GDI+ rendering engine is used.
GDI+ and Cairo render PDF shading types 1 and 4-7, including function-based, Gouraud triangle, Coons patch, and tensor-product patch shadings, with source-space colour interpolation, BBox clipping, Background fills, and transparency.
If Cairo is used, the SetCairoFileName function should be used to set the path to the Cairo DLL.
Syntax
Delphi
Function TPDFlib.SelectRenderer(RendererID: Integer): Integer;
ActiveX
Function PDFlib::SelectRenderer(RendererID As Long) As Long
DLL
int DLSelectRenderer(int InstanceID, int RendererID);
Parameters
| RendererID | 1 = GDI+ 2 = Cairo |
|---|
Return values
| 0 | The specified renderer could not be selected |
|---|---|
| 1 | The GDI+ renderer was selected 2 The Cairo renderer was selected |