Click or drag to resize

TextFormatScaleToDpi Property

Causes text to be drawn relative to the specified DPI.

Namespace:  Atalasoft.Imaging.Drawing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public Dpi ScaleToDpi { get; set; }

Property Value

Type: Dpi
The DPI value to scale drawn text to.

When drawing text on a canvas, the text will be drawn relative to the system's DPI by default. To draw text relative to the DPI of the canvas's target surface, set this property to the target surface's DPI.

The target surface DPI can be found in the Resolution property for AtalaImage sources, and can be created from the DpiX and DpiY properties of Graphics sources.

See Also