DevIL Documentation Home | Previous | Next

iluColoursUsed

The iluColoursUsed function returns the number of colours used in the current image.


ILuint iluColoursUsed(
  ILvoid
);

Parameters

None

Remarks

iluColoursUsed creates a copy of the image data, quicksorts it and counts the number of unique colours in the image. This value is returned without affecting the original image.

Error Codes

ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage