Returns a new
BufferedImage
of TYPE_INT_ARGB or TYPE_INT_RGB that has a
Raster
with pixel data computed by expanding the indices in the source
Raster
using the color/alpha component arrays of this
ColorModel
. Only the lower
n bits of each index value in the source
Raster
, as specified in the
class description above, are used to compute the color/alpha values in the returned image. If
forceARGB
is
true
, a TYPE_INT_ARGB image is returned regardless of whether or not this
ColorModel
has an alpha component array or a transparent pixel.
@param raster the specified
Raster
@param forceARGB if
true
, the returned
BufferedImage
is TYPE_INT_ARGB; otherwise it is TYPE_INT_RGB
@return a
BufferedImage
created with the specified
Raster
@throws IllegalArgumentException if the raster argument is notcompatible with this IndexColorModel