# Class Configuration#setPictureProperty

Configuration

- Defined in: configuration.js

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| Configuration#setPictureProperty(successCallback, errorCallback, options) Sets picture property.

## Class Detail

Configuration#setPictureProperty(successCallback, errorCallback, options)
Sets picture property. Each picture mode has a set of picture properties. If picture mode is changed, picture properties of that mode will be set accordingly.

Property | VIVID | STANDARD | APS | CINEMA | SPORTS | GAME | EXPERTS1 | EXPERTS2
--- | --- | --- | --- | --- | --- | --- | --- | ---
backlight | O | O | O | O | O | O | O | O
contrast | O | O | O | O | O | O | O | O
brightness | O | O | O | O | O | O | O | O
sharpness | O | O | O | O | O | O | X | X
hSharpness | X | X | X | X | X | X | O | O
vSharpness | X | X | X | X | X | X | O | O
color | O | O | O | O | O | O | O | O
tint | O | O | O | O | O | O | O | O
colorTemperature | O | O | O | X | O | O | X | X
dynamicContrast | X | O | O | O | O | O | O | O
superResolution | X | O | O | O | O | O | O | O
colorGamut | X | O | O | O | O | O | O | O
dynamicColor | X | O | O | O | O | O | O | O
noiseReduction | O | O | O | O | O | O | O | O
mpegNoiseReduction | O | O | O | O | O | O | O | O
blackLevel | O | O | O | O | O | O | O | O
gamma | O | O | O | O | O | O | O | O

    // Javascript code
    function setPictureProperty () {
      var options = {
      // For example, expert1 mode.
         backlight : 50,
         contrast : 50,
         brightness : 50,
         hSharpness : 50,
         vSharpness : 50,
         color : 50,
         tint : 50,
         colorTemparature : 50,
         dynamicContrast : "low",
         superResolution : "low",
         colorGamut : "wide",
         dynamicColor : "high",
         noiseReduction : "medium",
         mpegNoiseReduction : "low",
         blackLevel : "low",
         gamma : "medium"
      };

      function successCb() {
         // Do something
      }

      function failureCb(cbObject) {
         var errorCode = cbObject.errorCode;
         var errorText = cbObject.errorText;
         console.log ("Error Code [" + errorCode + "]: " + errorText);
      }

      var configuration = new Configuration();
      configuration.setPictureProperty(successCb, failureCb, options);
    }

Parameters:
{Function} successCallback
  success callback function.
{Function} errorCallback
  failure callback function.
{Object} options

  Property | Type | Description | Required
  --- | --- | --- | ---
  backlight | Number | backlight of display (0~100) | optional
  contrast | Number | contrast of display (0~100) | optional
  brightness | Number | brightness of display (0~100) | optional
  sharpness | Number | sharpness of display (0~50) | optional
  hSharpness | Number | hSharpness of display (0~50) | optional
  vSharpness | Number | vSharpness of display (0~50) | optional
  color | Number | color of display (0~100) | optional
  tint | Number | tint of display (0~100) R:0, G:100 | optional
  colorTemperature | Number | colorTemperature of display (0~100) W:0, C:100 | optional
  dynamicContrast | String | dynamicContrast of display (off/low/medium/high) | optional
  superResolution | String | superResolution of display (off/low/medium/high) | optional
  colorGamut | String | colorGamut of display (wide/standard) | optional
  dynamicColor | String | dynamicColor of display (off/low/medium/high) | optional
  noiseReduction | String | noiseReduction of display (auto/off/low/medium/high) | optional
  mpegNoiseReduction | String | mpegNoiseReduction of display (auto/off/low/medium/high) | optional
  blackLevel | String | blackLevel of display (low/high) | optional
  gamma | String | gamma of display (low/medium/high/high2) | optional

  Note : 'high2' option is depends on platform.

Since:
  1.0
Returns:

  If the method is successfully executed, success callback function is called without a parameter. If an error occurs, failure callback function is called with a failure callback object as a parameter.

See:
  Configuration.getPictureProperty()