DJI Mobile SDK Documentation

      class WhiteBalance

      @EXClassNullAway
      class WhiteBalance
      Package:dji.common.camera
      SDK Key:CameraKey.WHITE_BALANCE
      Description:

      This class contains current values for some camera parameters related to white balance. Values for the camera's current white balance preset and color temperature can be obtained from this class.

      Class Members:
      White Balance Preset
      method
      method getWhiteBalancePreset
      WhiteBalancePreset getWhiteBalancePreset()
      Package:dji.common.camera
      Description:

      The current preset for white balance.

      Return:
      WhiteBalancePresetWhite balance preset.
      Color Temperature
      method
      method getColorTemperature
      int getColorTemperature()
      Package:dji.common.camera
      Description:

      The current setting for color temperature. Real color temperature value (K) = value * 100. For example, 50 -> 5000K.

      Return:
      intColor temperature.
      Init with Preset
      method
      method WhiteBalance
      WhiteBalance(@NonNull WhiteBalancePreset preset)
      Package:dji.common.camera
      Description:

      Create a WhiteBalance instance with a white balance preset.

      Input Parameters:
      @NonNull WhiteBalancePreset presetWhite balance preset that is not CUSTOM.
      method WhiteBalance
      WhiteBalance(@NonNull WhiteBalancePreset preset, @IntRange(from = 20, to = 100) int temperature)
      Package:dji.common.camera
      Description:

      Create a WhiteBalance instance with white balance preset and temperature.

      Input Parameters:
      @NonNull WhiteBalancePreset presetWhite balance preset.
      @IntRange(from = 20, to = 100) int temperatureColor temperature value to be set in the range of [20, 100]. Real color temperature value (K) = value * 100. For example, 50 -> 5000K.