GetCanvasDCEx64
Vector graphics, Document management
Description
The trailing 64 denotes the 64-bit device context variant on the ActiveX/COM surface: it accepts and returns the device context handles as LongLong values so that 64-bit automation clients can pass them to RenderPageToDC64, RenderPageToDCClip64 and LoadFromCanvasDC without truncation. Behaviour matches GetCanvasDCEx; both the Delphi library and the DLL work with native HDC values
Creates a canvas of the specified size and returns a Windows device context DC that can be drawn on using Win32 drawing commands. When drawing operations are complete, call the LoadFromCanvasDC function to create a new document from the supplied drawing commands.
The Ex version of the function allows you to pass an existing Device Context handle as a reference when creating the DC.
The return value is a Windows device context handle declared as HDC, which stops 64-bit handles from being sign-extended.
Syntax
ActiveX
Function PDFlib::GetCanvasDCEx64(CanvasWidth As Long, CanvasHeight As Long, ReferenceDC As LongLong) As LongLong
Parameters
| CanvasWidth | The width of the canvas |
|---|---|
| CanvasHeight | The height of the canvas |
| ReferenceDC | The reference device context handle, passed as a 64-bit integer (LongLong) |