November 1998
Intermediate to advanced
1520 pages
37h 53m
English
Expressing font characters in terms of outlines opens up lots of potential in combining fonts with other graphics techniques. Earlier we saw how fonts can be rotated. This final section shows some other tricks. But before we continue, let’s look at two important preliminaries: graphics paths and extended pens.
A path is a collection of straight lines and curves stored internally to GDI. Paths were introduced in the 32-bit versions of Windows. The path may initially seem similar to the region, and indeed you can convert a path to a region and use a path for clipping. However, we’ll see shortly how they differ.
To begin a path definition, you simply call
BeginPath (hdc) ;
After this call, any line you draw (such as ...
Read now
Unlock full access