13.4. The Quality and Performance of Drawing

Drawing performance is inversely proportional to drawing quality. GDI+ provides several ways to set the quality of images and text. The SmoothingMode and TextRenderingHint properties are used to set image and text quality, respectively. The HighQuality and AntiAlias options provide slow drawing performance and better quality; the HighSpeed and None options provide poor quality and fast performance. Before using these options, we must decide if we really want to draw anti-aliased objects.

Sometimes anti-aliasing won’t affect the quality of a drawing, and it is bad programming practice to use this processor-intensive feature when it is not required. In other cases we might need to set anti-aliasing ...

Get Graphics Programming with GDI+ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.