Table of Contents

Method CreateGdiCompatibleTextLayout

Namespace
PaintDotNet.DirectWrite
Assembly
PaintDotNet.Windows.dll

CreateGdiCompatibleTextLayout(string, ITextFormat, float, float, float, in Matrix3x2Float?, bool)

Takes a string, format, and associated constraints, and produces an object representing the result, formatted for a particular display resolution and measuring mode.

ITextLayout CreateGdiCompatibleTextLayout(string text, ITextFormat textFormat, float layoutWidth = 0, float layoutHeight = 0, float pixelsPerDip = 1, in Matrix3x2Float? transform = null, bool useGdiNatural = false)

Parameters

text string
textFormat ITextFormat
layoutWidth float
layoutHeight float
pixelsPerDip float
transform Matrix3x2Float?
useGdiNatural bool

Returns

ITextLayout