public static PixelFormat<ByteBuffer> createByteIndexedPremultipliedInstance (int[] colors)

Creates a PixelFormat instance describing a pixel layout with the pixels stored as single bytes representing an index into the specified lookup table of premultiplied color values in the INT_ARGB_PRE format.

Pixels in this format can be decoded using the following sample code:

     int pixel = array[rowstart + x] & 0xff;
     int argb  = colors[pixel];

     int alpha = ((argb >> 24) & 0xff);
     int red   = ((argb >> 16) & 0xff);
     int green = ((argb >>  8) & 0xff);
     int blue  = ((argb      ) & 0xff);
 

Parameters:
colors    an int[] array of 32-bit color values in the INT_ARGB_PRE format

Returns:  a PixelFormat<ByteBuffer> describing the indicated pixel format with the specified list of premultiplied colors