O'Reilly logo

Graphics Programming with GDI+ by Mahesh Chand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter we discussed some common uses of rectangles and regions. You learned several ways to create Rectangle and RectangleF objects, and how to use the Round, Truncate, Union, Inflate, Ceiling, and Intersect methods in your applications. After that you saw an example of a hit test. Then we discussed the Region class and its members, and how to use Complement, Union, Exclude, Xor, and other methods of the Region class. We also saw a sample of clipping regions. At the end of this chapter we saw an interesting sample application that uses regions to create nonrectangular forms and controls.

Imaging is a vital part of graphics. GDI+ provides rich imaging functionality. We will cover this functionality in Chapter 7.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required