Enum InputSettings.OrientationCorrection

  • All Implemented Interfaces:
    Serializable, Comparable<InputSettings.OrientationCorrection>
    Enclosing class:
    InputSettings

    public static enum InputSettings.OrientationCorrection
    extends Enum<InputSettings.OrientationCorrection>
    Actions to take with respect to correcting image orientation based on image metadata. EXIF metadata within the image may contain a parameter indicating its proper orientation. This value can equal 1 through 8, inclusive. "1" means that the image is in its "normal" orientation, i.e., it should be viewed as it is stored.

    Regardless of the OrientationCorrection value used, the orientation value in a transformed image is always cleared to indicate that no additional corrections of the returned image's orientation is necessary.

    • Enum Constant Detail

      • CORRECT_ORIENTATION

        public static final InputSettings.OrientationCorrection CORRECT_ORIENTATION
        Apply any orientation specified in the EXIF metadata to the image during the first transformation.

        NOTE: If the image is already in portrait orientation, i.e., "taller" than it is "wide" no correction will be made, since it appears that the camera has already corrected it.

    • Method Detail

      • values

        public static InputSettings.OrientationCorrection[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (InputSettings.OrientationCorrection c : InputSettings.OrientationCorrection.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InputSettings.OrientationCorrection valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null