/** * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int) */ @Override public void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { checkParams(no, buf, x, y, w, h); /* if (!isFullPlane(x, y, w, h)) { throw new FormatException( "JPEG2000Writer does not yet support saving image tiles."); } */ //MetadataRetrieve retrieve = getMetadataRetrieve(); //int width = retrieve.getPixelsSizeX(series).getValue().intValue(); //int height = retrieve.getPixelsSizeY(series).getValue().intValue(); out.write(compressBuffer(no, buf, x, y, w, h)); }
/** * @see loci.formats.IFormatWriter#saveBytes(int, byte[], int, int, int, int) */ @Override public void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { checkParams(no, buf, x, y, w, h); /* if (!isFullPlane(x, y, w, h)) { throw new FormatException( "JPEG2000Writer does not yet support saving image tiles."); } */ //MetadataRetrieve retrieve = getMetadataRetrieve(); //int width = retrieve.getPixelsSizeX(series).getValue().intValue(); //int height = retrieve.getPixelsSizeY(series).getValue().intValue(); out.write(compressBuffer(no, buf, x, y, w, h)); }