Table of Contents

Method OnePixelAsDip

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

OnePixelAsDip(float?)

Converts a single pixel to device-independent pixels (DIPs).

public static float OnePixelAsDip(float? scaleFactor = null)

Parameters

scaleFactor float?

An optional scaling factor to use for the conversion. If null, the default scaling factor is applied.

Returns

float

The equivalent size of one pixel in device-independent pixels (DIPs).