Pascal
procedure tsImageGetInfo(ImageID: tsImageID; pisEmpty: ptsBool; pWidth: ptsInt; pHeight: ptsInt; pFormat: ptsEnum; pData: PPointer);
C/C++
void tsImageGetInfo(tsImageID ImageID, tsBool * pisEmpty, tsInt * pWidth, tsInt * pHeight, tsEnum * pFormat, void ** pData);
This function allowes you to query some informations from an image. If the Pointers aren't nil / NULL they will be filled with the information. Otherwise the parameters getting ignored.
The ImageID from which the infos will be quered.
An pointer they indicates if the image is empty of if its containing any image data.
The image is empty.
The image isn't empty.
An pointer in which the width will be returned.
An pointer in which the height will be returned.
An pointer in which the format will be returned. For an complete list of all supported formats look in the format table. If the image is empty the format will be TS_FORMAT_EMPTY.
An pointer in which the datapointer of the image will be returned.
If there was no context bound.
This will happen if you pass an invalid ImageID to this function.