8.7. tsImageGetIsEmpty

Syntax

Pascal

function tsImageGetIsEmpty(ImageID: tsImageID): tsBool;

C/C++

tsBool tsImageGetIsEmpty(tsImageID ImageID);

Description

This function queres the information if the image is empty.

[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

TS_TRUE

Indicates that the image is empty.

TS_FALSE

The image isnt empty. This also will returned in an error ocours.

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.