Class VNImageCropAndScaleOption


  • public final class VNImageCropAndScaleOption
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long CenterCrop
      scale image maintaining aspect ratio to fit on the short side and crop centered on the long side
      static long ScaleFill  
      static long ScaleFillRotate90CCW
      scale image and rotate by 90 degrees counter clockwise to optimize portrait images to fill into landscape buffers for algorithms that are rotation agnostic
      static long ScaleFit
      scale to size required by algorithm while maintaining the original aspect ratio
      static long ScaleFitRotate90CCW
      scale image maintaining aspect ratio to fit on the long side but also rotate by 90 degrees counter clockwise to optimize portrait images to fit into landscape buffers for algorithms that are rotation agnostic
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • CenterCrop

        public static final long CenterCrop
        scale image maintaining aspect ratio to fit on the short side and crop centered on the long side
        See Also:
        Constant Field Values
      • ScaleFit

        public static final long ScaleFit
        scale to size required by algorithm while maintaining the original aspect ratio
        See Also:
        Constant Field Values
      • ScaleFitRotate90CCW

        public static final long ScaleFitRotate90CCW
        scale image maintaining aspect ratio to fit on the long side but also rotate by 90 degrees counter clockwise to optimize portrait images to fit into landscape buffers for algorithms that are rotation agnostic
        See Also:
        Constant Field Values
      • ScaleFillRotate90CCW

        public static final long ScaleFillRotate90CCW
        scale image and rotate by 90 degrees counter clockwise to optimize portrait images to fill into landscape buffers for algorithms that are rotation agnostic
        See Also:
        Constant Field Values