@Test public void readImage() throws IOException { BufferedImage read = ImageIO.read(new File(SRCIMG)); System.out.println(read.toString()); ColorModel colorModel = read.getColorModel(); System.out.println(colorModel); }
public StringBuilder toString(StringBuilder sb) { sb = super.toString(sb); sb.append(", allowRowStride ") .append(allowRowStride) .append(", image [") .append(image.getWidth()) .append("x") .append(image.getHeight()) .append(", ") .append(image.toString()) .append("]"); return sb; }