COLOR_ARRAY Class Reference

Container for array (palette) of colors. More...

#include <mi32/colorarray.h>

Inheritance diagram for COLOR_ARRAY:
Inheritance graph
[legend]

List of all members.

Public Member Functions

INT32 FindClosestColor (const COLOR &color) const

Detailed Description

Container for array (palette) of colors.


Member Function Documentation

INT32 COLOR_ARRAY::FindClosestColor ( const COLOR color  )  const

Find closest color in array to specified color.

Distance is computed in RGB colorspace. Performs linear search of array, so may not be efficient for multiple calls.

Returns:
Index of closest color, -1 if array is empty.

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:33:16 2012 for TNTsdk 2012 by  doxygen 1.6.1