RenderPageToDCClip

Rendering and printing

Description

This function renders a page from the selected document directly onto a graphics surface with a clip paths. It is possible to use a render offset for clip paths definitions SetRenderDCOffset

On Windows the target surface is a Device Context handle (DC).

By default rendering uses the GDI+ system which is available by default in Windows XP and later.

Syntax

Delphi

function TPDFlib.RenderPageToDCClip(DPI: Double; Page: Integer; DC: HDC; Const Clip: AnsiString): Integer;

ActiveX

Function PDFlib::RenderPageToDCClip(DPI As Double, Page As Long, DC As Variant, Clip As String) As Long

DLL

int DLRenderPageToDCClip(int InstanceID, double DPI, int Page, int DC, char * Clip);

Parameters

DPIRendering DPI
PagePage number to render
DCThe device context handle
ClipInitial clip rectangle array, defined by left top positions, widths and heights with comma delimiters (L1 T1 W1 H1 L2 T2 W2 H2 ... Ln Tn Wn Hn)

Return values

1Render successfull Render failed
0