/*************************************************************************** * * **************************************************************************/ private void assertImage (final EditableImage image, final int bandCount, final int bitsPerBand, final int bitsPerPixel, final EditableImage.DataType dataType) { AssertJUnit.assertEquals(WIDTH, image.getWidth()); AssertJUnit.assertEquals(HEIGHT, image.getHeight()); AssertJUnit.assertEquals(bandCount, image.getBandCount()); AssertJUnit.assertEquals(bitsPerBand, image.getBitsPerBand()); AssertJUnit.assertEquals(bitsPerPixel, image.getBitsPerPixel()); AssertJUnit.assertEquals(dataType, image.getDataType()); } }
final int height = image.getHeight(); final int bandCount = image.getBandCount(); final int bitsPerBand = image.getBitsPerBand(); final int bitsPerPixel = image.getBitsPerPixel(); final EditableImage.DataType dataType = image.getDataType();
EditableImage image = EditableImage.create(new ReadOp(file_20030701_0043_jpg)); AssertJUnit.assertEquals(3, image.getBandCount()); AssertJUnit.assertEquals(8, image.getBitsPerBand()); AssertJUnit.assertEquals(24, image.getBitsPerPixel()); AssertJUnit.assertEquals(EditableImage.DataType.BYTE, image.getDataType());