Examples of canSetSourceRenderSize()


Examples of javax.imageio.ImageReadParam.canSetSourceRenderSize()

            thumbnails.add(im = r.read(1, irp));
            mt.addImage(im, 0);
            mt.waitForID(0);
            mt.removeImage(im, 0);
        } else {
            if (irp.canSetSourceRenderSize()) {
                irp.setSourceRenderSize(thumbs);
            } else {
                int x = Math.round((dim.width - thumbs.width) / 2f);
                int y = Math.round((dim.height - thumbs.height) / 2f);
                irp.setSourceRegion(new Rectangle(x, y, thumbs.width, thumbs.height));
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.