8.2. tsImageDestroy

Syntax

Pascal

procedure tsImageDestroy(ImageID: tsImageID);

C/C++

void tsImageDestroy(tsImageID ImageID);

Description

An image which was created with tsImageCreate musst be freed with this function.

Params

ImageID

This is the ID of an image that will be completely freed.

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.