CHAPTER 3

image

WPF Graphics Basics in 2D

As mentioned in Chapter 1, WPF provides a unified graphics platform that allows you to easily create a variety of user interfaces and graphics objects in your applications. In the previous chapter, we discussed various transformation operations on graphics objects in WPF. This chapter begins by describing graphics coordinate systems used in WPF and shows you several different coordinate systems you can use to make graphics programming easier. Then I’ll show you how to create basic 2D shapes in WPF applications using WPF’s built-in Shape class and your own custom shapes.

2D Coordinate Systems in WPF

When you ...

Get Practical WPF Charts and Graphics now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.