public void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { if (!isFullPlane(x, y, w, h)) { throw new FormatException("V3DRawWriter does not support writing tiles"); checkParams(no, buf, x, y, w, h); MetadataRetrieve meta = getMetadataRetrieve(); boolean bigendian = false; if (meta.getPixelsBigEndian(series) != null) { endianString = "B"; int rgbChannels = getSamplesPerPixel();
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { if (!isFullPlane(x, y, w, h)) { throw new FormatException("V3DRawWriter does not support writing tiles"); checkParams(no, buf, x, y, w, h); MetadataRetrieve meta = getMetadataRetrieve(); boolean bigendian = false; if (meta.getPixelsBigEndian(series) != null) { endianString = "B"; int rgbChannels = getSamplesPerPixel();