Click or drag to resize
CanvasPrintEventArgsDpi Property
Gets or sets the DPI to be used while printing.

Namespace:  Microsoft.Graphics.Canvas.Printing
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public float Dpi { get; set; }

Property Value

Type: Single
Remarks

This can only be set before the first call to CreateDrawingSession.

Many drawing operations are DPI independent (eg text, lines, circles etc.) and are sent to the printer as geometry. However, some operations require explicit rasterization (eg some types of layers, effects). This setting controls the DPI that this rasterization will happen at.

See Also