Table of Contents

Property DpuUnit

Namespace
PaintDotNet
Assembly
PaintDotNet.Data.dll

DpuUnit

Gets or sets the units that are used for measuring the document's physical (printed) size.

public MeasurementUnit DpuUnit { get; set; }

Property Value

MeasurementUnit

Remarks

If this property is set to MeasurementUnit.Pixel, then Dpu will be reset to 1. If this property has not been set in the image's metadata, its default value will be MeasurementUnit.Inch. If the EXIF data for the image is invalid (such as "ResolutionUnit = 0" or something), then the default DpuUnit will be returned.