@Override protected void updateMinMax(int no, byte[] buf, int len) throws FormatException, IOException { if (!isMinMaxSet()) super.updateMinMax(no, buf, len); }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); super.openBytes(no, buf, x, y, w, h); updateMinMax(no, buf, FormatTools.getBytesPerPixel(getPixelType()) * w * h); return buf; }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); super.openBytes(no, buf, x, y, w, h); updateMinMax(no, buf, FormatTools.getBytesPerPixel(getPixelType()) * w * h); return buf; }