VpeRenderPictureResID

<< Click to Display Table of Contents >>

Navigation:  Rendering >

VpeRenderPictureResID

Previous pageReturn to chapter overviewNext page

[Windows platform only]

Computes the dimensions of a given image, based on the method VpePictureResID(). The dimensions are computed including the surrounding frame, if PenSize is <> 0.

void VpeRenderPictureResID(

VpeHandle hDoc,

VpeCoord width,

VpeCoord height,

int hInstance,

unsigned int res_id

)

VpeHandle hDoc

Document Handle

VpeCoord width, height

Can be used to compute either the width or the height by setting one value to a numeric value whilst using VFREE for the other value. Usually you will set both values to VFREE.

int hInstance

Instance-Handle

unsigned int res_id

the resource id

Remarks:

In case of an error, LastError is set.

 

The computed dimensions can be retrieved with

VpeGet(hDoc, VRENDERWIDTH)

VpeGet(hDoc, VRENDERHEIGHT)

Example:

see VpeRenderPicture

 

See also:

"Rendering Objects" in the Programmer's Manual