Description
Spec - http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/ImageTypeSpecifier.html#createIndexed(byte[], byte[], byte[], byte[], int, int)
The implementation is really straight forward, after validate the parameters. Use IndexColorModel to instantiate ColorModel, and create compatible SampleModel