dataType);
case DataBuffer.TYPE_INT:
return new ComponentColorModel(cs, bits, useAlpha, premultiplied, transparency,
dataType);
case DataBuffer.TYPE_FLOAT:
return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
case DataBuffer.TYPE_DOUBLE:
return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
default:
throw new IllegalArgumentException("Wrong data type used");
}
}