}
switch (transferType) {
case DataBuffer.TYPE_BYTE:
case DataBuffer.TYPE_USHORT:
return new PixelInterleavedSampleModel(transferType, w, h,
numComponents, w * numComponents, bandOffsets);
default:
return new ComponentSampleModel(transferType, w, h, numComponents,
w * numComponents, bandOffsets);