Examples of forceComponentColorModel()


Examples of org.geotools.image.ImageWorker.forceComponentColorModel()

           
            // we did not find the background color, well we have to expand to RGB and then tell Mosaic to use the RGB(A) color as the
            // background
            if (bgColorIndex == -1) {
                // we need to expand the image to RGB
                image = worker.forceComponentColorModel().getRenderedImage();
                if(transparent) {
                    image = addAlphaChannel(image);
                    worker.setImage(image);
                }
                bgValues = new double[] { bgColor.getRed(), bgColor.getGreen(), bgColor.getBlue(),
View Full Code Here

Examples of org.geotools.image.ImageWorker.forceComponentColorModel()

                bgValues = new double[] { bgColorIndex };
            }
           
            // collect alpha channels if we have them in order to reuse them later on for mosaic operation
            if (cm.hasAlpha() && bgColorIndex == -1) {
                worker.forceComponentColorModel();
                final RenderedImage alpha = worker.retainLastBand().getRenderedImage();
                alphaChannels = new PlanarImage[] { PlanarImage.wrapRenderedImage(alpha) };
            }
        }
       
View Full Code Here

Examples of org.geotools.image.ImageWorker.forceComponentColorModel()

           
            //we did not find the background color, well we have to expand to RGB and then tell Mosaic to use the RGB(A) color as the
            // background
            if (bgColorIndex == -1) {
                // we need to expand the image to RGB
                image = worker.forceComponentColorModel().getRenderedImage();
                if(transparent) {
                    image = addAlphaChannel(image);
                    worker.setImage(image);
                }
                bgValues = new double[] { bgColor.getRed(), bgColor.getGreen(), bgColor.getBlue(),
View Full Code Here

Examples of org.geotools.image.ImageWorker.forceComponentColorModel()

                bgValues = new double[] { bgColorIndex };
            }
           
            //collect alpha channels if we have them in order to reuse them later on for mosaic operation
            if (cm.hasAlpha()) {
                worker.forceComponentColorModel();
                final RenderedImage alpha =worker.retainLastBand().getRenderedImage();
                alphaChannels = new PlanarImage[] { PlanarImage.wrapRenderedImage(alpha) };
            }
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.