bilevelImage.getPackedBytes(x1, y, w, row, offs, 0);
}
else
if (image instanceof Gray16Image)
{
Gray16Image grayImage = (Gray16Image)image;
while (w-- > 0)
{
short sample = grayImage.getShortSample(x1++, y);
ArrayConverter.setShortBE(row, offs, sample);
offs += 2;
}
}
else
if (image instanceof Gray8Image)
{
Gray8Image grayImage = (Gray8Image)image;
grayImage.getByteSamples(0, getBoundsX1(), y, getBoundsWidth(), 1, row, offs);
}
else
if (image instanceof Paletted8Image)
{
Paletted8Image palImage = (Paletted8Image)image;