Java BufferedImage Operation roate90(BufferedImage src)

Here you can find the source of roate90(BufferedImage src)

Description

roate

License

Open Source License

Declaration

public static BufferedImage roate90(BufferedImage src) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.image.BufferedImage;

public class Main {

    public static BufferedImage roate90(BufferedImage src) {
        int width = src.getWidth();
        int height = src.getHeight();

        BufferedImage bRotate = new BufferedImage(height, width, src.getType());
        for (int x = 0; x < width; x++)
            for (int y = 0; y < height; y++)
                bRotate.setRGB(height - 1 - y, x, src.getRGB(x, y));
        return bRotate;
    }/*from w  ww.j  ava2  s . c  om*/
}

Related

  1. reorientImage(BufferedImage image, boolean yAxisFlipNeeded, int cwRotationNeeded)
  2. repairImage(final BufferedImage bfi, final List order)
  3. resampleImage(BufferedImage image, int height)
  4. resampleWithAffineTransformOp(BufferedImage srcImage, double sx, double sy)
  5. revertBlackAndWhite(BufferedImage img)
  6. sample9Points(BufferedImage src, int x, int y)
  7. scanFill(BufferedImage sourceImage)
  8. scrapeColors(BufferedImage image)
  9. setArrayAlpha(BufferedImage image, int[] array)