
return the color depth in bits (ie: how big the palette needs to be)
ie:
1: 2 colors or less
4: 16 colors or less
8: 256 colors or less
16: 65536 colors or less
24: 16 777 216 colors or less
32: > 16 777 216 colors
resource intensive
Note: maxColors, is the maximum you want to look for, if more that "maxColor" colors are found, an exception will be thrown.

return the color depth in bits (ie: how big the palette needs to be)
ie:
1: 2 colors or less
4: 16 colors or less
8: 256 colors or less
16: 65536 colors or less
24: 16 777 216 colors or less
32: > 16 777 216 colors
resource intensive
Note: maxColors, is the maximum you want to look for, if more that "maxColor" colors are found, an exception will be thrown.
Returns: