Table of Contents

Method ConvertFontPointsToPixels

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

ConvertFontPointsToPixels(double)

Converts a font size, expressed in points (1/72 inch), to pixels. This is useful when converting GDI+ (System.Drawing) text rendering code to Direct2D/DirectWrite.

public double ConvertFontPointsToPixels(double points)

Parameters

points double

Returns

double

ConvertFontPointsToPixels(float)

Converts a font size, expressed in points (1/72 inch), to pixels. This is useful when converting GDI+ (System.Drawing) text rendering code to Direct2D/DirectWrite.

public float ConvertFontPointsToPixels(float points)

Parameters

points float

Returns

float