Pascal
procedure tsImageNew(ImageID: tsImageID; Width: tsInt; Height: tsInt; Format: tsEnum);
C/C++
void tsImageNew(tsImageID ImageID, tsInt Width, tsInt Height, tsEnum Format);
This function allocates new image data for an image object. Previous existing data will be freed an completelly lost. The data will be initialized with zero.
The ImageID on with the new data will be allocated
Width of the resulting image data.
Height of the resulting image data.
The format of the image data. For an complete list of formats see tsSetParameter.
If there was no context bound.
If you tries to copy an image that is to large.
This occours if you pass an unknown Format to this function.
This will happen if you pass an invalid ImageID to this function. It also will happen if you pass zero (or less) for the width or the height.
There was an unknown error. Please inform me in which case this happens.