DngProperties Class
The identifying tags of a DNG file: its version, and the camera and profile that describe its raw data. This is informational only, like ImageMetadata.SourceFormat: it describes the file, not the pixels.
public sealed class DngProperties : IEquatable<DngProperties>Remarks
No operation updates it, and every encoder ignores it.
- Implements
Constructors
| Name | Description |
|---|---|
| DngProperties(Version, Version, string?, string?, string?, string?, string?, string?, double) | Initializes a new instance of the DngProperties class. |
DngProperties(Version, Version, string?, string?, string?, string?, string?, string?, double)
DngProperties.csInitializes a new instance of the DngProperties class.
public DngProperties(Version version, Version backwardVersion, string? uniqueCameraModel, string? localizedCameraModel, string? make, string? model, string? cameraSerialNumber, string? profileName, double baselineExposure)Parameters
versionVersion- The version of the DNG specification the file follows (
DNGVersion). backwardVersionVersion- The oldest version of a reader that can read the file (
DNGBackwardVersion). uniqueCameraModelstring?- The unique, non-localized name of the camera model (
UniqueCameraModel), ornull. localizedCameraModelstring?- The localized name of the camera model (
LocalizedCameraModel), ornull. makestring?- The manufacturer of the camera (
Make), ornull. modelstring?- The model of the camera (
Model), ornull. cameraSerialNumberstring?- The serial number of the camera (
CameraSerialNumber), ornull. profileNamestring?- The name of the camera profile of the file (
ProfileName), ornull. baselineExposuredouble- The exposure, in stops, that the rendering adds to give the camera model the same brightness as other models (
BaselineExposure).
Exceptions
ArgumentNullExceptionversionorbackwardVersionisnull.
Properties
| Name | Description |
|---|---|
| BackwardVersion | Gets the oldest version of a reader that can read the file (DNGBackwardVersion). |
| BaselineExposure | Gets the exposure, in stops, that the rendering adds to give the camera model the same brightness as other models (BaselineExposure, 0 by default). The decoded pixels include it. |
| CameraSerialNumber | Gets the serial number of the camera (CameraSerialNumber), or null. |
| LocalizedCameraModel | Gets the localized name of the camera model (LocalizedCameraModel), or null. |
| Make | Gets the manufacturer of the camera (Make), or null. |
| Model | Gets the model of the camera (Model), or null. |
| ProfileName | Gets the name of the camera profile of the file (ProfileName), or null. |
| UniqueCameraModel | Gets the unique, non-localized name of the camera model (UniqueCameraModel), or null. |
| Version | Gets the version of the DNG specification the file follows (DNGVersion), such as 1.4.0.0. |
BackwardVersion
DngProperties.csBaselineExposure
DngProperties.csCameraSerialNumber
DngProperties.csLocalizedCameraModel
DngProperties.csMake
DngProperties.csModel
DngProperties.csProfileName
DngProperties.csUniqueCameraModel
DngProperties.csVersion
DngProperties.csMethods
| Name | Description |
|---|---|
| Equals(DngProperties?) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| ToString() | Returns a string that represents the current object. |
Equals overloads
Equals(DngProperties?)
DngProperties.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(DngProperties? other)Parameters
otherDngProperties?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.