O'Reilly logo

Windows Forms 2.0 Programming by Michael Weinhardt, Chris Sells

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

7. Advanced Drawing

CHAPTER 5: DRAWING BASICS AND CHAPTER 6: DRAWING TEXT cover the basics of drawing, including colors, pens, brushes, shapes, paths, images, fonts, and string drawing. This chapter looks at advanced topics such as page units, world transforms, regions, and optimization techniques. And as if that weren't enough, Chapter 8: Printing wraps up the tour of the System.Drawing namespace with a look at printing.

Page Units

In Chapters 5 and 6, we've concentrated on drawing to the screen. By default, if you're drawing in the Paint event handler, you're drawing in units of pixels. Even if you create a Graphics object from a form using Form.CreateGraphics, you draw in units of pixels. This is handy because the units of the various user ...

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