DJI Mobile SDK Documentation

      class OriginalPhotoSettings

      class OriginalPhotoSettings
      Package:dji.common.camera
      Description:

      Settings to determine the behavior for the original photos created when doing composite shooting (e.g. panorama).

      Class Members:
      Save Photos
      method
      method shouldSaveOriginalPhotos
      boolean shouldSaveOriginalPhotos()
      Package:dji.common.camera
      Description:

      true if the camera should save the original photos.

      Return:
      booleantrue if the camera should save the original photos.
      Photo Format
      method
      method getFormat
      SettingsDefinitions.PhotoFileFormat getFormat()
      Package:dji.common.camera
      Description:

      The format for the original photos if the user decides to save them. Mavic Air cannot change this setting and it will ignore this property.

      Return:
      SettingsDefinitions.PhotoFileFormatAn enum value of PhotoFileFormat.
      Constructor
      method
      method OriginalPhotoSettings
      OriginalPhotoSettings(boolean shouldSaveOriginalPhotos)
      Package:dji.common.camera
      Description:

      Creates an instance of the configuration to decide whether or not to save the original photos or not. getFormat will be JPEG. Use this constructor for Mavic Air.

      Input Parameters:
      boolean shouldSaveOriginalPhotostrue to save the original photos.
      method OriginalPhotoSettings
      OriginalPhotoSettings(boolean shouldSaveOriginalPhotos,
      SettingsDefinitions.PhotoFileFormat format)
      Package:dji.common.camera
      Description:

      Creates an instance of the configuration to decide whether or not to save the original photos and the format in which to save them.

      Input Parameters:
      boolean shouldSaveOriginalPhotostrue to save the original photos.
      SettingsDefinitions.PhotoFileFormat formatThe format to save the original photos.