diff --git a/components/formats-gpl/src/loci/formats/in/CellSensReader.java b/components/formats-gpl/src/loci/formats/in/CellSensReader.java index 54a254e7869..04b90b6ea3f 100644 --- a/components/formats-gpl/src/loci/formats/in/CellSensReader.java +++ b/components/formats-gpl/src/loci/formats/in/CellSensReader.java @@ -529,6 +529,7 @@ public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); + Arrays.fill(buf, getFillColor()); if (getCoreIndex() < core.size() - 1 && getCoreIndex() < rows.size()) { int tileRows = rows.get(getCoreIndex()); @@ -544,6 +545,9 @@ public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) int outputRowLen = w * pixel; Pyramid pyramid = getCurrentPyramid(); + if (pyramid.fillColor != null) { + Arrays.fill(buf, pyramid.fillColor); + } for (int row=0; row channelNames = new ArrayList(); public ArrayList channelWavelengths = new ArrayList();