Table of Contents

Enum ResolutionUnit

Namespace
Egami.Metadata
Assembly
Egami.dll

The unit of a Resolution.

public enum ResolutionUnit

Fields

None = 0

No unit: the values only give the pixel aspect ratio.

PerCentimeter = 2

Pixels per centimeter.

PerInch = 1

Pixels per inch.

PerMeter = 3

Pixels per meter.

Examples

RasterMetadata metadata = image.Metadata;
metadata.Text.Add(new TextEntry("Comment", "Made with Egami"));
metadata.Resolution = new Resolution(300, 300, ResolutionUnit.PerInch);
Console.WriteLine($"{metadata.ColorSpace}, ICC {metadata.IccProfile.Length} bytes, XMP {metadata.Xmp.Length} bytes");
foreach (EgamiDiagnostic warning in metadata.Warnings)
{
    Console.WriteLine($"Recovered from: {warning.Message} ({warning.Id})");
}

image.Save("duck-300dpi.png");