for

Quantizes the color definitions of this palette.

Parameters:
quantizeMaxCoordinate the quantification will map color components (originally in [0;255]) to ([0,quantizeMaxCoordinate]).

the 8-bit palettes of the Nintendo DS, quantization is made on 5 bits, thus color components have to be quantized to [0;2^5-1=31], and quantizeMaxCoordinate = 31.

Parameters:
scaleUp if false (the default), all color components will be left in [0,quantizeMaxCoordinate]. If true, then they will be mapped again to [0;255]. This allows to display the effects of quantification. For example, an original component equal to 120 will be quantized with quantizeMaxCoordinate=31 to 15. With scaleUp set to true, it will be scaled back, which leads, due to the roundings, to 123.
Generated on Mon Nov 29 14:04:04 2010 for OSDL by  doxygen 1.6.3