Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Using Regions

The GDI+ Region class allows you to define a custom shape. The shape can be made up of lines, polygons, and curves.

Two common uses for regions are hit testing and clipping. Hit testing is determining whether the mouse was clicked in a certain region of the screen. Clipping is restricting drawing to a certain region.

How to: Use Hit Testing with a Region

Shows how to use a Region to perform a hit test.

How to: Use Clipping with a Region

Explains how to set the clipping region for a Graphics object.

Region

Describes this class and contains links to all of its members.

Graphics

Describes this class and contains links to all of its members.

Show:
© 2015 Microsoft