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.Metadata
Assembly:  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:

IDDescription
2inches
3YCbCr4:2:0
othercentimeters


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.

Version Information

FreeImage.NET

Supported in: 3.12.0, 3.13.0, 3.13.1

See Also