3.1. Graphics Class Properties

The Graphics class provides a long list of properties (see Table 3.1) and methods. We will discuss and use these properties and methods in this and following chapters.

Table 3.1. Graphics properties
PropertyDescription
ClipGets and sets a Region type that limits the drawing region of the Graphics object.
ClipBoundsReturns a RectangleF structure that bounds the clipping region of this Graphics object. Supports read-only access.
CompositingModeReturns a value of type CompositingMode enumeration representing how composite images are drawn to the Graphics object.
CompositingQualityGets and sets the rendering quality (directly proportional to the visual quality of the output and inversely proportional to the rendering time) ...

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.