src/org/nutz/img/Images.java
public static BufferedImage rotate(String srcPath, String taPath, int degree)
            throws IOException {
        File srcIm = Files.findFile(srcPath);
        if (null == srcIm)
            throw Lang.makeThrow("Fail to find image file '%s'!", srcPath);

        File taIm = Files.createFileIfNoExists(taPath);
        return rotate(srcIm, taIm, degree);
    }
public static BufferedImage rotate(String srcPath, String taPath, int degree)
            throws IOException {
        File srcIm = Files.findFile(srcPath);
        if (null == srcIm)
            throw Lang.makeThrow("Fail to find image file '%s'!", srcPath);

        File taIm = Files.createFileIfNoExists(taPath);
        return rotate(srcIm, taIm, degree);
    }
public static BufferedImage rotate ( String srcPath , String taPath , int degree ) throws IOException { File srcIm = Files . findFile ( srcPath ) ; if ( null == srcIm ) throw Lang . makeThrow ( "Fail to find image file '%s'!" , srcPath ) ; File taIm = Files . createFileIfNoExists ( taPath ) ; return rotate ( srcIm , taIm , degree ) ; }
对一个图像进行旋转

@param srcPath
原图像文件路径
@param taPath
转换后的图像文件路径
@param degree
旋转角度, 90 为顺时针九十度， -90 为逆时针九十度
@return 旋转后得图像对象
对一个图像进行旋转