8.1. tsImageCreate

Syntax

Pascal

procedure tsImageCreate(pImageID: ptsImageID);

C/C++

void tsImageCreate(tsImageID * pImageID);

Description

This will create an new and empty imageobject. This can be used to load some files from disk or to create an image. The created image will be bound to the active context. Please make sure that you destroys all created images.

Params

pImageID

In this Pointer the ID of the created image will be saved.

Error Codes

TS_NO_ACTIVE_CONTEXT

If there was no context bound.

TS_OUT_OF_MEMORY

The creation of the image object failed with an out of memory error.

TS_INVALID_VALUE

This will happen if you pass nil / NULL to this function.

TS_ERROR

There was an unknown error. Please inform me in which case this happens.