Enum ResolutionUnit
The unit of a Resolution.
public enum ResolutionUnit
Fields
None = 0No unit: the values only give the pixel aspect ratio.
PerCentimeter = 2Pixels per centimeter.
PerInch = 1Pixels per inch.
PerMeter = 3Pixels 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");