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 LongDLL
int DLRenderPageToDCClip(int InstanceID, double DPI, int Page, int DC, char * Clip);Parameters
| DPI | Rendering DPI |
|---|---|
| Page | Page number to render |
| DC | The device context handle |
| Clip | Initial 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
| 1 | Render successfull Render failed |
|---|---|
| 0 |