Browse Source

Merge pull request #1981 from 0xced/fix-resolution-doc

Fix documentation of HorizontalResolution and VerticalResolution properties
pull/1993/head
James Jackson-South 4 years ago
committed by GitHub
parent
commit
a844c78d31
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      src/ImageSharp/Metadata/ImageMetadata.cs

30
src/ImageSharp/Metadata/ImageMetadata.cs

@ -72,7 +72,7 @@ namespace SixLabors.ImageSharp.Metadata
/// <summary> /// <summary>
/// Gets or sets the resolution of the image in x- direction. /// Gets or sets the resolution of the image in x- direction.
/// It is defined as the number of dots per inch and should be an positive value. /// It is defined as the number of dots per <see cref="ResolutionUnits"/> and should be an positive value.
/// </summary> /// </summary>
/// <value>The density of the image in x- direction.</value> /// <value>The density of the image in x- direction.</value>
public double HorizontalResolution public double HorizontalResolution
@ -90,7 +90,7 @@ namespace SixLabors.ImageSharp.Metadata
/// <summary> /// <summary>
/// Gets or sets the resolution of the image in y- direction. /// Gets or sets the resolution of the image in y- direction.
/// It is defined as the number of dots per inch and should be an positive value. /// It is defined as the number of dots per <see cref="ResolutionUnits"/> and should be an positive value.
/// </summary> /// </summary>
/// <value>The density of the image in y- direction.</value> /// <value>The density of the image in y- direction.</value>
public double VerticalResolution public double VerticalResolution
@ -108,10 +108,28 @@ namespace SixLabors.ImageSharp.Metadata
/// <summary> /// <summary>
/// Gets or sets unit of measure used when reporting resolution. /// Gets or sets unit of measure used when reporting resolution.
/// 00 : No units; width:height pixel aspect ratio = Ydensity:Xdensity /// <list type="table">
/// 01 : Pixels per inch (2.54 cm) /// <listheader>
/// 02 : Pixels per centimeter /// <term>Value</term>
/// 03 : Pixels per meter /// <description>Unit</description>
/// </listheader>
/// <item>
/// <term>AspectRatio (00)</term>
/// <description>No units; width:height pixel aspect ratio = Ydensity:Xdensity</description>
/// </item>
/// <item>
/// <term>PixelsPerInch (01)</term>
/// <description>Pixels per inch (2.54 cm)</description>
/// </item>
/// <item>
/// <term>PixelsPerCentimeter (02)</term>
/// <description>Pixels per centimeter</description>
/// </item>
/// <item>
/// <term>PixelsPerMeter (03)</term>
/// <description>Pixels per meter (100 cm)</description>
/// </item>
/// </list>
/// </summary> /// </summary>
public PixelResolutionUnit ResolutionUnits { get; set; } public PixelResolutionUnit ResolutionUnits { get; set; }

Loading…
Cancel
Save