Class Transform

    • Constructor Summary

      Constructors 
      Constructor Description
      Transform()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Image rotate​(java.awt.Image originalImage, int rotate)
      Rotate an Image.
      static java.awt.Image scale​(java.awt.Image originalImage, int maximumDimension)
      Scale an image so that its maximum dimension is no larger than the maximumDimension parameter.
      • Methods inherited from class java.lang.Object

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

      • Transform

        public Transform()
    • Method Detail

      • rotate

        public static java.awt.Image rotate​(java.awt.Image originalImage,
                                            int rotate)
        Rotate an Image.
        Parameters:
        originalImage - The java.awt.Image to rotate.
        rotate - The number of degrees to rotate the originalImage
        Returns:
        The rotated Image.
      • scale

        public static java.awt.Image scale​(java.awt.Image originalImage,
                                           int maximumDimension)
        Scale an image so that its maximum dimension is no larger than the maximumDimension parameter. This method is useful for creating thumbnail images.
        Parameters:
        originalImage - The java.awt.Image to rotate.
        maximumDimension - The maximum x or y dimension
        Returns:
        The scaled Image.