Property UnitMode
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
UnitMode
Gets or sets the mode that is being used to interpret values by the device context.
UnitMode UnitMode { get; set; }
Property Value
Remarks
This method will affect all properties and parameters affected by the Dpi property. This affects all coordinates,
lengths, and other properties that are not explicitly defined as being in another unit. For example:
- Setting the unit mode will affect a coordinate passed into DrawLine(Point2Float, Point2Float, IDeviceBrush, float, IStrokeStyle?), and the scale of geometry passed into FillGeometry(IGeometry, IDeviceBrush, IDeviceBrush?).
- Setting the unit mode will not affect the value returned by PixelSize.