DisplayUnitsConverter.PixelToPoint

DisplayUnitsConverter.PixelToPoint method

在指定的像素分辨率下,将像素转换为点。

public static float PixelToPoint(int pixels, float dpi)
参数类型描述
像素Int32要转换的像素值。
dpiSingle屏幕分辨率。

返回值

Int32。

另请参阅