GetCanvasDCEx64

Vector graphics, Document management

Description

The trailing 64 marks the 64-bit device context form on the ActiveX/COM surface: it takes 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 is identical to GetCanvasDCEx; the Delphi library and the DLL use 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 keeps 64-bit handles from being sign-extended.

Syntax

ActiveX

Function PDFlib::GetCanvasDCEx64(CanvasWidth As Long, CanvasHeight As Long, ReferenceDC As LongLong) As LongLong

Parameters

CanvasWidthThe width of the canvas
CanvasHeightThe height of the canvas
ReferenceDCThe reference device context handle