Class Rotate


  • public class Rotate
    extends java.lang.Object
    Performs affine transformation - ROTATION on given image, keeps source image unmodified
    • Constructor Summary

      Constructors 
      Constructor Description
      Rotate()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage rotate​(java.awt.image.BufferedImage img, double theta)
      Rotates image by given angle ( in degrees ), performs concurrent processing of each row of image matrix
      java.awt.image.BufferedImage rotate​(java.lang.String img, double theta)
      Given an image by its file path, reads it, and rotates, rotated image is different than original i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rotate

        public Rotate()
    • Method Detail

      • rotate

        public java.awt.image.BufferedImage rotate​(java.awt.image.BufferedImage img,
                                                   double theta)
        Rotates image by given angle ( in degrees ), performs concurrent processing of each row of image matrix
        Parameters:
        img - Image to be rotated
        theta - Angle of rotation in degree
        Returns:
        Rotated buffered image, which is other than source image
      • rotate

        public java.awt.image.BufferedImage rotate​(java.lang.String img,
                                                   double theta)
        Given an image by its file path, reads it, and rotates, rotated image is different than original i.e. in place modification not done
        Parameters:
        img - Path to image file to be rotated
        theta - Angle of rotation in degrees
        Returns:
        Rotated buffered image