8.11. tsImageGetData

Syntax

Pascal

function tsImageGetData(ImageID: tsImageID): Pointer;

C/C++

void * tsImageGetData(tsImageID ImageID);

Description

This function queres the datapointer of the image. For an description of the format from the data please take an look in the Image section.

[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 data pointer of the image. If there was an error or the image is empty the return value is nil / NULL.

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.