Quick PDF logo

GetCanvasDC

Vector graphics, Document management

Version history

This function was introduced in Quick PDF Library version 7.14.

Description

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 defined as either an unsigned integer or a signed integer on different platforms and editions of the library.

Syntax

Delphi

function TQuickPDF0813.GetCanvasDC(CanvasWidth, CanvasHeight: Integer): HDC;

ActiveX

Function QuickPDF0813.PDFLibrary::GetCanvasDC(CanvasWidth As Long,
  CanvasHeight As Long) As Long

DLL

HDC QuickPDFGetCanvasDC(int InstanceID, int CanvasWidth, int CanvasHeight)

Parameters

CanvasWidth The width of the canvas
CanvasHeight The height of the canvas

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum