GetCanvasDC64

Vector graphics, Document management

Description

The trailing 64 marks the 64-bit device context form on the ActiveX/COM surface: it returns the canvas handle as a LongLong so that 64-bit automation clients can pass it back to RenderPageToDC64, RenderPageToDCClip64 and LoadFromCanvasDC without truncation. Behaviour is identical to GetCanvasDC; 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 keeps 64-bit handles from being sign-extended.

Syntax

ActiveX

Function PDFlib::GetCanvasDC64(CanvasWidth As Long, CanvasHeight As Long) As LongLong

Parameters

CanvasWidthThe width of the canvas
CanvasHeightThe height of the canvas