Class RotateAntiClockwise180

  • All Implemented Interfaces:
    Rotation

    public class RotateAntiClockwise180
    extends java.lang.Object
    implements Rotation
    Given a buffered image, we'll rotate that image by 180° in anti-clockwise direction and obtain a new image, though original image buffer to stay unmodified. We'll perform this rotation as combination two basic operations

    i ) First horizontally rotate image matrix

    ii ) Then vertically rotate it

    or the other way :) Applying these two rotations in any of two possible orders will result into same image matrix, which is rotating image by 180° in anti-clockwise / clockwise direction ( both are same actually )

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage rotate​(java.awt.image.BufferedImage img)  
      java.awt.image.BufferedImage rotate​(java.lang.String src)  
      • Methods inherited from class java.lang.Object

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

      • RotateAntiClockwise180

        public RotateAntiClockwise180()
    • Method Detail

      • rotate

        public java.awt.image.BufferedImage rotate​(java.awt.image.BufferedImage img)
        Specified by:
        rotate in interface Rotation
      • rotate

        public java.awt.image.BufferedImage rotate​(java.lang.String src)
        Specified by:
        rotate in interface Rotation