ImageOtherParameters-klass
Summary: Other image parameters
Module: aspose.imaging.fileformats.dng.decoder
Full Name: aspose.imaging.fileformats.dng.decoder.ImageOtherParameters
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| aperture | float | r | Hämtar bländaren. |
| artist | string | r | Hämtar bildens författare. |
| description | string | r | Hämtar bildbeskrivningen. |
| focal_length | float | r | Hämtar brännvidden. |
| gps_data | int[] | r | Hämtar GPS‑data. |
| iso_speed | float | r | Hämtar ISO‑känsligheten. |
| shot_order | int | r | Hämtar bildens serienummer. |
| shutter_speed | float | r | Hämtar slutartiden. |
| timestamp | int | r | Hämtar fotograferingsdatumet. |
Property: aperture
Hämtar bländaren.
See also:
Example # 1: This example shows how to load a DNG image from a file, print its properties …
Property: description
Hämtar bildbeskrivningen.
See also:
Example # 1: This example shows how to load a DNG image from a file, print its properties …
Property: focal_length
Hämtar brännvidden.
See also:
Example # 1: This example shows how to load a DNG image from a file, print its properties …
Property: iso_speed
Hämtar ISO‑känsligheten.
See also:
Example # 1: This example shows how to load a DNG image from a file, print its properties …
Property: shot_order
Hämtar bildens serienummer.
See also:
Example # 1: This example shows how to load a DNG image from a file, print its properties …
Property: shutter_speed
Hämtar slutartiden.
See also:
Example # 1: This example shows how to load a DNG image from a file, print its properties …
Property: timestamp
Hämtar fotograferingsdatumet.
See also:
Example # 1: This example shows how to load a DNG image from a file, print its properties …
Examples
This example shows how to load a DNG image from a file, print its properties and save it to PNG.
import aspose.pycore as aspycore
from aspose.imaging import Image
from aspose.imaging.fileformats.dng import DngImage
from aspose.imaging.imageoptions import PngOptions
from os.path import join
dir_: str = "c:\\temp"
with Image.load(join(dir_, "test.dng")) as image:
dng_image = aspycore.as_of(image, DngImage)
raw_data = dng_image.img_data
parameters = raw_data.image_data_parameters
if parameters is not None:
print("The camera manufacturer: ", str(parameters.camera_manufacturer))
print("The camera model: ", str(parameters.model))
print("The colors count: ", str(parameters.colors_count))
print("The colors description: ", str(parameters.description))
print("The DNG version: ", str(parameters.dng_version))
print("The number of RAW images in the file: ", str(parameters.raw_count))
print("The software: ", str(parameters.software))
print("The order of the color pixels: ", bin(parameters.filters))
translation_cfa_dng = parameters.translation_cfa_dng
if translation_cfa_dng is not None:
print("The translation array for CFA mosaic :", translation_cfa_dng.length)
for s in translation_cfa_dng:
print("- ", s)
other_parameters = raw_data.image_other_parameters
if other_parameters is not None:
print("The aperture: ", other_parameters.aperture)
print("The description: ", other_parameters.description)
print("The focal length: ", other_parameters.focal_length)
print("The ISO sensitivity: ", other_parameters.iso_speed)
print("The serial number of the image: ", other_parameters.shot_order)
print("The shutter speed: ", other_parameters.shutter_speed)
print("The date of shooting: ", System.DateTime.from_file_time(other_parameters.timestamp))
# Exportera till PNG med standardalternativ.
dng_image.save(join(dir_, "test.png"), PngOptions())
# Kameratillverkaren: Leica
# Kameramodellen: M8 Digital Camera
# Antalet färger: 3
# Färgbeskrivning: RGBG
# DNG-versionen: 16777216
# Antalet RAW-bilder i filen: 1
# Mjukvaran: 1.107
# Färgpixelordning: 0b10110100101101001011010010110100
# Bländaren: 0
# Beskrivning:
# Brännvidd: 50
# ISO-känsligheten: 160
# Bildens serienummer: 0
# Slutartid: 12
# Fotodatum: 8/3/2007 3:13:49 AM