Package com.pegaa.uploader.imgfilters

Examples of com.pegaa.uploader.imgfilters.RotateFilter


        graphics2D.drawImage(image, 0, 0, newWidth, newHeight, null);
        retImage = thumbImage;


        if (status != ImageItem.NORMAL) {
            RotateFilter filter = new RotateFilter();
            if (status == ImageItem.LEFT) {
                filter.setAngle((float) Math.PI / 2);
            } else if (status == ImageItem.DOWNSIDE) {
                filter.setAngle((float) Math.PI);
            } else if (status == ImageItem.RIGHT) {
                filter.setAngle((float) (Math.PI + Math.PI / 2));
            }
            retImage = filter.filter(retImage, null);
        }
        return retImage;
    }
View Full Code Here

TOP

Related Classes of com.pegaa.uploader.imgfilters.RotateFilter

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.