Achieving MS Word print quality in C #

I am writing a small application that prints some stickers on a special printer.

When I use MS Word to print some text on this printer (and in an XPS file), the result looks excellent. When I print from C # code with a Graphics object, the text seems overly pixelated or smoothed.

I tried the following hints, but none gave the same result as MS Word:

System.Drawing.Drawing2D.SmoothingMode.AntiAlias
System.Drawing.Text.TextRenderingHint.AntiAliasGridFit
System.Drawing.Text.TextRenderingHint.AntiAlias
System.Drawing.Text.TextRenderingHint.ClearTypeGridFit
InterpolationMode.NearestNeighbor
CompositingQuality.HighQuality

And some others.

Can you advise what hints are used by MS Word, so I could create it programmatically?

+5
source share
3 answers

Graphics, , .

, /DPI , , (XPS) .

+3

Windows GDI ( ) - . (, ) .

: (== ) WPF, XPS .

0

300DPI, . 600DPI . , , - 96DPI, .

0

All Articles