Package javax.media.jai

Examples of javax.media.jai.ImageMIPMap


            float minX = paramBlock.getFloatParameter(2);
            float minY = paramBlock.getFloatParameter(3);
            float height = paramBlock.getFloatParameter(4);

            // Create an image pyramid.
            ImageMIPMap pyramid = new ImageMIPMap(source, downSampler);

            // Create a Vector of RenderedImages from the pyramid.
            Vector sourceVector = new Vector();
            RenderedImage currentImage = pyramid.getCurrentImage();
            sourceVector.add(currentImage);
            while(currentImage.getWidth() > maxLowResDim ||
                  currentImage.getHeight() > maxLowResDim) {
                RenderedImage nextImage = pyramid.getDownImage();
                if(nextImage.getWidth() >= currentImage.getWidth() ||
                   nextImage.getHeight() >= currentImage.getHeight()) {
                    throw new IllegalArgumentException(JaiI18N.getString("RenderableCRIF0"));
                }
                sourceVector.add(nextImage);
View Full Code Here

TOP

Related Classes of javax.media.jai.ImageMIPMap

Copyright © 2018 www.massapicom. 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.