8.9. tsImageGetHeight

Syntax

Pascal

function tsImageGetHeight(ImageID: tsImageID): tsInt;

C/C++

tsInt tsImageGetHeight(tsImageID ImageID);

Description

This function queres the height of an image.

[Tip] Tip

This function calls tsImageGetInfo internally. If you need more than one information from an font reduce overhead and call tsImageGetInfo instead.

Params

ImageID

The ImageID from which the infos will be quered.

Return Value

Return value is the width of the image. If there was an error the return value is zero.

Error Codes

TS_NO_ACTIVE_CONTEXT

If there was no context bound.

TS_INVALID_VALUE

This will happen if you pass an invalid ImageID to this function.