RenderPictureResID

<< Click to Display Table of Contents >>

Navigation:  Rendering >

RenderPictureResID

Previous pageReturn to chapter overviewNext page

[Not available in .NET, use RenderPictureDIB]

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

method void VPE.RenderPictureResID(

VpeCoord Width,

VpeCoord Height,

long hInstance,

long ResourceID

)

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.

long hInstance

Instance-Handle (of type HINSTANCE)

long ResourceID

the resource id

Remarks:

In case of an error, LastError is set.

 

The computed dimensions can be retrieved with the properties:

nRenderWidth and nRenderHeight

Example:

see RenderPicture

 

See also:

"Rendering Objects" in the Programmer's Manual