ERROR - java.awt.RasterFormatException - Possible Causes of RasterFormatException

Exception Thrown By:Cause
ClassMethod
BandedSampleModel public SampleModel
createSubsetSampleModel(int[] bands)
if the number of bands is greater
than the number of banks in this sample model.
MultiPixelPackedSampleModel public SampleModel
createSubsetSampleModel(int[] bands)
if the number of
bands requested is not one.
SinglePixelPackedSampleModel public SampleModel
createSubsetSampleModel(int[] bands)
if the length of the bands argument
isgreater than the number of bands inthe sample model.get