GetCanvasDCEx
Vector graphics, Document management
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 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 defined as either an unsigned integer or a signed integer on different platforms and editions of the library.
Syntax
Delphi
function TPDFlib.GetCanvasDCEx(CanvasWidth, CanvasHeight: Integer; ReferenceDC: Cardinal): Cardinal;ActiveX
Function PDFlib::GetCanvasDCEx(CanvasWidth As Long, CanvasHeight As Long, ReferenceDC As Long) As LongDLL
int DLGetCanvasDCEx(int InstanceID, int CanvasWidth, int CanvasHeight, int ReferenceDC);Parameters
| CanvasWidth | The width of the canvas |
|---|---|
| CanvasHeight | The height of the canvas |
| ReferenceDC | The reference device context handle |