@Override public boolean isRGB() { if (!isFilled()) return reader.isRGB(); return getRGBChannelCount() > 1; }
@Override public boolean isRGB() { if (!isFilled()) return reader.isRGB(); return getRGBChannelCount() > 1; }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { byte[] buf = DataTools.allocate(w, h, getRGBChannelCount(), FormatTools.getBytesPerPixel(getPixelType())); return openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { byte[] buf = DataTools.allocate(w, h, getRGBChannelCount(), FormatTools.getBytesPerPixel(getPixelType())); return openBytes(no, buf, x, y, w, h); }