Table of Contents

Method FromPixels

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

FromPixels(double, UnitMode, double)

Converts a pixel value to the specified to unit.

public static double FromPixels(double pixels, UnitMode to, double dpi = 96)

Parameters

pixels double

The pixel value to convert.

to UnitMode

The target unit.

dpi double

Effective DPI of the pixel source. Default is 96.

Returns

double

The value expressed in the to unit.