public static BufferedImage flipHorizontal(Object srcIm) {
        BufferedImage im1 = read(srcIm);
        int w = im1.getWidth();
        int h = im1.getHeight();
        BufferedImage flipImage = new BufferedImage(w, h, im1.getType());
        Graphics2D gs = flipImage.createGraphics();
        gs.drawImage(im1, 0, 0, w, h, w, 0, 0, h, null);
        gs.dispose();
        return flipImage;
    }
public static BufferedImage flipHorizontal(Object srcIm) {
        BufferedImage im1 = read(srcIm);
        int w = im1.getWidth();
        int h = im1.getHeight();
        BufferedImage flipImage = new BufferedImage(w, h, im1.getType());
        Graphics2D gs = flipImage.createGraphics();
        gs.drawImage(im1, 0, 0, w, h, w, 0, 0, h, null);
        gs.dispose();
        return flipImage;
    }
public static BufferedImage flipHorizontal ( Object srcIm ) { BufferedImage im1 = read ( srcIm ) ; int w = im1 . getWidth ( ) ; int h = im1 . getHeight ( ) ; BufferedImage flipImage = new BufferedImage ( w , h , im1 . getType ( ) ) ; Graphics2D gs = flipImage . createGraphics ( ) ; gs . drawImage ( im1 , 0 , 0 , w , h , w , 0 , 0 , h , null ) ; gs . dispose ( ) ; return flipImage ; }
水平翻转一张图片

@param srcIm
源图片
@return 被转换后的图像
水平翻转一张图片