June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to ensure that drawn shapes are rendered in the best possible detail.
Set the SmoothingMode and TextRenderingHint properties of the Graphics object before drawing.
The Graphics object provides two stateful properties that configure the rendering quality. SmoothingMode allows you to use automatic antialiasing, which improves the look of curves with shading. For example, if you draw a black circle on a white background, antialiasing might add a small amount of gray shading to take away the jaggedness. TextRenderingHint performs analogous control that affects text you draw using the Graphics.DrawString method.
The following code snippet draws two ellipses with two captions, using the default ...
Read now
Unlock full access