public class

CameraWhiteBalanceAndColorTemperature

extends Object
java.lang.Object
   ↳ dji.common.camera.CameraWhiteBalanceAndColorTemperature

Class Overview

The camera’s white balance (color temperature). When white balance is CustomColorTemperature, the colorTemperature argument is used. For all other values, the colorTemperature argument is ignored.

Summary

Public Constructors
CameraWhiteBalanceAndColorTemperature()
Public Methods
int getColorTemperature()
DJICameraSettingsDef.CameraWhiteBalance getWhiteBalance()
void setColorTemperature(int colorTemperature)
Sets the color temperature value.
void setWhiteBalance(DJICameraSettingsDef.CameraWhiteBalance whiteBalance)
Sets the white balance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CameraWhiteBalanceAndColorTemperature ()

Public Methods

public int getColorTemperature ()

Returns
  • Color temperature value.

public DJICameraSettingsDef.CameraWhiteBalance getWhiteBalance ()

Returns
  • White balance preset.

public void setColorTemperature (int colorTemperature)

Sets the color temperature value.

Parameters
colorTemperature The range is [20,100]. Real color temperature value(K) = value * 100. For example, 50 -> 5000K.

public void setWhiteBalance (DJICameraSettingsDef.CameraWhiteBalance whiteBalance)

Sets the white balance.

Parameters
whiteBalance White balance enum type to be set.