Table of Contents

Property DpuX

Namespace
PaintDotNet
Assembly
PaintDotNet.Data.dll

DpuX

Gets or sets the Document's dots-per-unit scale in the X direction.

public double DpuX { get; set; }

Property Value

double

Remarks

If DpuUnit is equal to MeasurementUnit.Pixel, then this property may not be set to any value other than 1.0. Setting DpuUnit to MeasurementUnit.Pixel will reset this property to 1.0. This property may only be set to a value greater than 0. One dot is always equal to one pixel. This property will not return a value less than MinimumDpu, nor a value larger than MaximumDpu.