Class ImageOtherParameters

Class ImageOtherParameters

Namespace: Aspose.Imaging.FileFormats.Dng.Decoder
Assembly: Aspose.Imaging.dll (25.7.0)

Other image parameters

[JsonObject(MemberSerialization.OptIn)]
   public class ImageOtherParameters
   {
   }

Inheritance

object ImageOtherParameters

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

Aperture

Gets the aperture.

public float Aperture
   {
      get;
   }

Property Value

float

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           System.Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           System.Console.WriteLine("The camera model:                     {0}", parameters.Model);
           System.Console.WriteLine("The colors count:                     {0}", parameters.ColorsCount);
           System.Console.WriteLine("The colors description:               {0}", parameters.Description);
           System.Console.WriteLine("The DNG version:                      {0}", parameters.DngVersion);
           System.Console.WriteLine("The number of RAW images in the file: {0}", parameters.RawCount);
           System.Console.WriteLine("The software:                         {0}", parameters.Software);
           System.Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               System.Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   System.Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           System.Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           System.Console.WriteLine("The description:                      {0}", otherParameters.Description);
           System.Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           System.Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           System.Console.WriteLine("The serial number of the image:       {0}", otherParameters.ShotOrder);
           System.Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           System.Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }

Artist

Gets the author of image.

public string Artist
   {
      get;
   }

Property Value

string

Description

Gets the image description.

public string Description
   {
      get;
   }

Property Value

string

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           System.Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           System.Console.WriteLine("The camera model:                     {0}", parameters.Model);
           System.Console.WriteLine("The colors count:                     {0}", parameters.ColorsCount);
           System.Console.WriteLine("The colors description:               {0}", parameters.Description);
           System.Console.WriteLine("The DNG version:                      {0}", parameters.DngVersion);
           System.Console.WriteLine("The number of RAW images in the file: {0}", parameters.RawCount);
           System.Console.WriteLine("The software:                         {0}", parameters.Software);
           System.Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               System.Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   System.Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           System.Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           System.Console.WriteLine("The description:                      {0}", otherParameters.Description);
           System.Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           System.Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           System.Console.WriteLine("The serial number of the image:       {0}", otherParameters.ShotOrder);
           System.Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           System.Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }

FocalLength

Gets the length of the focal.

public float FocalLength
   {
      get;
   }

Property Value

float

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           System.Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           System.Console.WriteLine("The camera model:                     {0}", parameters.Model);
           System.Console.WriteLine("The colors count:                     {0}", parameters.ColorsCount);
           System.Console.WriteLine("The colors description:               {0}", parameters.Description);
           System.Console.WriteLine("The DNG version:                      {0}", parameters.DngVersion);
           System.Console.WriteLine("The number of RAW images in the file: {0}", parameters.RawCount);
           System.Console.WriteLine("The software:                         {0}", parameters.Software);
           System.Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               System.Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   System.Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           System.Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           System.Console.WriteLine("The description:                      {0}", otherParameters.Description);
           System.Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           System.Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           System.Console.WriteLine("The serial number of the image:       {0}", otherParameters.ShotOrder);
           System.Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           System.Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }

GpsData

Gets the GPS data.

public uint[] GpsData
   {
      get;
   }

Property Value

uint []

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           Console.WriteLine("The camera model:                     {0}", parameters.Model);
           Console.WriteLine("The colors count:                      {0}", parameters.ColorsCount);
           Console.WriteLine("The colors description:               {0}", parameters.Description);
           Console.WriteLine("The DNG version:                       {0}", parameters.DngVersion);
           Console.WriteLine("The number of RAW images in the file:  {0}", parameters.RawCount);
           Console.WriteLine("The software:                          {0}", parameters.Software);
           Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           Console.WriteLine("The description:                      {0}", otherParameters.Description);
           Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           Console.WriteLine("The serial number of the image:        {0}", otherParameters.ShotOrder);
           Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }

IsoSpeed

Gets the ISO sensitivity.

public float IsoSpeed
   {
      get;
   }

Property Value

float

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           System.Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           System.Console.WriteLine("The camera model:                     {0}", parameters.Model);
           System.Console.WriteLine("The colors count:                     {0}", parameters.ColorsCount);
           System.Console.WriteLine("The colors description:               {0}", parameters.Description);
           System.Console.WriteLine("The DNG version:                      {0}", parameters.DngVersion);
           System.Console.WriteLine("The number of RAW images in the file: {0}", parameters.RawCount);
           System.Console.WriteLine("The software:                         {0}", parameters.Software);
           System.Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               System.Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   System.Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           System.Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           System.Console.WriteLine("The description:                      {0}", otherParameters.Description);
           System.Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           System.Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           System.Console.WriteLine("The serial number of the image:       {0}", otherParameters.ShotOrder);
           System.Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           System.Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }

ShotOrder

Gets serial number of image.

public uint ShotOrder
   {
      get;
   }

Property Value

uint

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           System.Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           System.Console.WriteLine("The camera model:                     {0}", parameters.Model);
           System.Console.WriteLine("The colors count:                     {0}", parameters.ColorsCount);
           System.Console.WriteLine("The colors description:               {0}", parameters.Description);
           System.Console.WriteLine("The DNG version:                      {0}", parameters.DngVersion);
           System.Console.WriteLine("The number of RAW images in the file: {0}", parameters.RawCount);
           System.Console.WriteLine("The software:                         {0}", parameters.Software);
           System.Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               System.Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   System.Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           System.Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           System.Console.WriteLine("The description:                      {0}", otherParameters.Description);
           System.Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           System.Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           System.Console.WriteLine("The serial number of the image:       {0}", otherParameters.ShotOrder);
           System.Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           System.Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }

ShutterSpeed

Gets the shutter speed.

public float ShutterSpeed
   {
      get;
   }

Property Value

float

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           System.Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           System.Console.WriteLine("The camera model:                     {0}", parameters.Model);
           System.Console.WriteLine("The colors count:                     {0}", parameters.ColorsCount);
           System.Console.WriteLine("The colors description:               {0}", parameters.Description);
           System.Console.WriteLine("The DNG version:                      {0}", parameters.DngVersion);
           System.Console.WriteLine("The number of RAW images in the file: {0}", parameters.RawCount);
           System.Console.WriteLine("The software:                         {0}", parameters.Software);
           System.Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               System.Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   System.Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           System.Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           System.Console.WriteLine("The description:                      {0}", otherParameters.Description);
           System.Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           System.Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           System.Console.WriteLine("The serial number of the image:       {0}", otherParameters.ShotOrder);
           System.Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           System.Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }

Timestamp

Gets the date of shooting.

public long Timestamp
   {
      get;
   }

Property Value

long

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

string dir = "c:\\temp\\";
   using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "test.dng"))
   {
       Aspose.Imaging.FileFormats.Dng.DngImage dngImage = (Aspose.Imaging.FileFormats.Dng.DngImage)image;
       Aspose.Imaging.FileFormats.Dng.Decoder.RawData rawData = dngImage.ImgData;
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageParameters parameters = rawData.ImageDataParameters;
       if (parameters != null)
       {
           System.Console.WriteLine("The camera manufacturer:              {0}", parameters.CameraManufacturer);
           System.Console.WriteLine("The camera model:                     {0}", parameters.Model);
           System.Console.WriteLine("The colors count:                     {0}", parameters.ColorsCount);
           System.Console.WriteLine("The colors description:               {0}", parameters.Description);
           System.Console.WriteLine("The DNG version:                      {0}", parameters.DngVersion);
           System.Console.WriteLine("The number of RAW images in the file: {0}", parameters.RawCount);
           System.Console.WriteLine("The software:                         {0}", parameters.Software);
           System.Console.WriteLine("The order of the color pixels:        {0}", System.Convert.ToString(parameters.Filters, 2));
           string[] translationCfaDng = parameters.TranslationCfaDng;
           if (translationCfaDng != null)
           {
               System.Console.WriteLine("The translation array for CFA mosaic {0}:", translationCfaDng.Length);
               foreach (string s in translationCfaDng)
               {
                   System.Console.WriteLine("- {0}", s);
               }
           }
       }
       Aspose.Imaging.FileFormats.Dng.Decoder.ImageOtherParameters otherParameters = rawData.ImageOtherParameters;
       if (otherParameters != null)
       {
           System.Console.WriteLine("The aperture:                         {0}", otherParameters.Aperture);
           System.Console.WriteLine("The description:                      {0}", otherParameters.Description);
           System.Console.WriteLine("The focal length:                     {0}", otherParameters.FocalLength);
           System.Console.WriteLine("The ISO sensitivity:                  {0}", otherParameters.IsoSpeed);
           System.Console.WriteLine("The serial number of the image:       {0}", otherParameters.ShotOrder);
           System.Console.WriteLine("The shutter speed:                    {0}", otherParameters.ShutterSpeed);
           System.Console.WriteLine("The date of shooting:                 {0}", System.DateTime.FromFileTime(otherParameters.Timestamp));
       }
       dngImage.Save(dir + "test.png", new Aspose.Imaging.ImageOptions.PngOptions());
   }
 English