Java Utililty Methods BufferedImage Flip

List of utility methods to do BufferedImage Flip

Description

The list of methods to do BufferedImage Flip are organized into topic(s).

Method

BufferedImageverticalFlip(BufferedImage img)
vertical Flip
int w = img.getWidth();
int h = img.getHeight();
BufferedImage flippedImage = new BufferedImage(w, h, img.getColorModel().getTransparency());
Graphics2D g = flippedImage.createGraphics();
g.drawImage(img, 0, 0, w, h, 0, h, w, 0, null);
g.dispose();
return flippedImage;
BufferedImageverticalFlip(BufferedImage img)
Flips image raster vertically
if (null == img)
    return null;
int w = img.getWidth();
int h = img.getHeight();
BufferedImage flipImg = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
Graphics2D g2d = flipImg.createGraphics();
java.awt.Composite prevComposite = g2d.getComposite();
g2d.setComposite(java.awt.AlphaComposite.Src);
...