GetCanvasDC64
Vector graphics, Document management
Description
The trailing 64 denotes the 64-bit device context variant on the ActiveX/COM surface: it hands back the canvas handle as a LongLong so that 64-bit automation clients can pass it to RenderPageToDC64, RenderPageToDCClip64 and LoadFromCanvasDC without truncation. Behaviour matches GetCanvasDC; both the Delphi library and the DLL return the same handle as a native HDC value
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 return value is a Windows device context handle declared as HDC, which stops 64-bit handles from being sign-extended.
Syntax
ActiveX
Function PDFlib::GetCanvasDC64(CanvasWidth As Long, CanvasHeight As Long) As LongLong
Parameters
| CanvasWidth | The width of the canvas |
|---|---|
| CanvasHeight | The height of the canvas |