/** * Retrieves the images composing the grid when the color model is <code>RBG</code> and when the * channels are not mapped to red, green or blue i.e. a channel mapped to yellow. */ private void retrieveGridImages() { List<BufferedImage> images = parent.getGridImages(); if (images != null) { Iterator<BufferedImage> i = images.iterator(); boolean b = originalGridImages.size() == 0; BufferedImage img; while (i.hasNext()) { img = i.next(); gridImages.add(Factory.magnifyImage(img, gridRatio, 0)); if (b) originalGridImages.add(img); } combinedImage = Factory.magnifyImage(renderedImage, gridRatio, 0); } }
/** * Retrieves the images composing the grid when the color model is <code>GreyScale</code> and when * the channels are not mapped to red, green or blue i.e. a channel mapped to yellow. * * @param channels Collection of active channels in the grid. */ private void retrieveGridImagesForGreyScale(List channels) { List<BufferedImage> images = parent.getGridImages(); if (images != null) { int last = images.size() - 1; combinedImage = Factory.magnifyImage(gridRatio, images.get(last)); images.remove(last); Iterator<BufferedImage> i = images.iterator(); boolean b = originalGridImages.size() == 0 && !isImageMappedRGB(channels); BufferedImage img; while (i.hasNext()) { img = i.next(); gridImages.add(Factory.magnifyImage(gridRatio, img)); if (b) originalGridImages.add(img); } } }