Enum Class CameraHelper.MeteringRegion

java.lang.Object
java.lang.Enum<CameraHelper.MeteringRegion>
com.digimarc.capture.camera.CameraHelper.MeteringRegion
All Implemented Interfaces:
Serializable, Comparable<CameraHelper.MeteringRegion>, Constable
Enclosing class:
CameraHelper

public static enum CameraHelper.MeteringRegion extends Enum<CameraHelper.MeteringRegion>
MeteringRegion flags are used by the CameraHelper.setFocusRegion(DetectionRegion, int) and CameraHelper.setFocusPoint(float, float, int, int) methods. For ease of use we suggest using the AUTO_ values in this enum rather than the enum values themselves.
  • Enum Constant Details

  • Field Details

    • AUTO_FOCUS

      public static int AUTO_FOCUS
      Set the Auto Focus region if this device supports it.
    • AUTO_EXPOSURE

      public static int AUTO_EXPOSURE
      Set the Auto Exposure region if this device supports it.
    • AUTO_WHITE_BALANCE

      public static int AUTO_WHITE_BALANCE
      Set the Auto White Balance region if this device supports it.
    • AUTO_ALL

      public static int AUTO_ALL
      Set Auto Focus, Auto Exposure and Auto White Balance. If any of these capabilities are not supported by the device they will be ignored.
  • Method Details

    • values

      public static CameraHelper.MeteringRegion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CameraHelper.MeteringRegion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMask

      public int getMask()