@Override public void saveBytes(int no, byte[] buf, IFD ifd, int x, int y, int w, int h) throws FormatException, IOException { if (ifd == null) { ifd = new IFD(); } if (getResolution() > 0) { ifd.put(IFD.NEW_SUBFILE_TYPE, 1); } else { if (!ifd.containsKey(IFD.SUB_IFD)) { ifd.put(IFD.SUB_IFD, (long) 0); } } super.saveBytes(no, buf, ifd, x, y, w, h); }
@Override public void saveBytes(int no, byte[] buf, IFD ifd, int x, int y, int w, int h) throws FormatException, IOException { if (ifd == null) { ifd = new IFD(); } if (getResolution() > 0) { ifd.put(IFD.NEW_SUBFILE_TYPE, 1); } else { if (!ifd.containsKey(IFD.SUB_IFD)) { ifd.put(IFD.SUB_IFD, (long) 0); } } super.saveBytes(no, buf, ifd, x, y, w, h); }