Class SwapDimensions

  • All Implemented Interfaces:
    ImageFilter

    public class SwapDimensions
    extends java.lang.Object
    implements ImageFilter
    This is a no-op filter that acts as a "flag" to enable proper handling of dimensions for images that will be oriented by using Exif metadata.

    This is an internal filter that should not be used by consumers of Thumbnailator.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SwapDimensions()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage apply​(java.awt.image.BufferedImage img)
      Applies a image filtering operation on an image.
      static SwapDimensions getInstance()  
      • Methods inherited from class java.lang.Object

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

      • SwapDimensions

        private SwapDimensions()
    • Method Detail

      • apply

        public java.awt.image.BufferedImage apply​(java.awt.image.BufferedImage img)
        Description copied from interface: ImageFilter
        Applies a image filtering operation on an image.
        Specified by:
        apply in interface ImageFilter
        Parameters:
        img - The image to apply the filtering on.
        Returns:
        The resulting image after applying this filter.