Gets or sets the unit for measuring XResolution and YResolution.
The same unit is used for both XResolution and YResolution.
If the image resolution in unknown, 2 (inches) is designated.
See remarks for further information.
Namespace:
FreeImageAPI.MetadataAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public Nullable<ushort> ResolutionUnit { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property ResolutionUnit As Nullable(Of UShort) |
| Visual C++ |
|---|
public: property Nullable<unsigned short> ResolutionUnit { Nullable<unsigned short> get (); void set (Nullable<unsigned short> value); } |
Remarks
The following values are definied:
Handling of null values A null value indicates, that the corresponding metadata tag is not present in the metadata model. Setting this property's value to a non-null reference creates the metadata tag if necessary. Setting this property's value to a null reference deletes the metadata tag from the metadata model.
| ID | Description |
|---|---|
| 2 | inches |
| 3 | YCbCr4:2:0 |
| other | centimeters |
Handling of null values A null value indicates, that the corresponding metadata tag is not present in the metadata model. Setting this property's value to a non-null reference creates the metadata tag if necessary. Setting this property's value to a null reference deletes the metadata tag from the metadata model.