Class RotateClockwise90

  • All Implemented Interfaces:
    Rotation

    public class RotateClockwise90
    extends java.lang.Object
    implements Rotation
    Given an image, we'll rotate it by 90° in clockwise direction, using combination of two basic operations

    i ) First transpose image matrix ( T )

    ii ) Then horizontally rotate image matrix ( H )

    R = result image = H( T ( Image ) )

    Note that : Step i & ii needs to be applied in ordered fashion, otherwise that will result into rotating image by 270° in clockwise direction

    • 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

      • RotateClockwise90

        public RotateClockwise90()
    • 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