setImage(paletted8Image);
}
else
if (channels == 1 && depth == 8 && colorMode == COLOR_MODE_GRAYSCALE)
{
gray8Image = new MemoryGray8Image(width, height);
setImage(gray8Image);
}
else
{
throw new IllegalArgumentException("Unknown image type in PSD file.");