Windows Programming/GDI and Drawing
From Wikibooks, the open-content textbooks collection
This page of the Windows Programming book is a stub. You can help by expanding it.
This page will talk about graphics and drawing using the windows GDI libraries.
Contents |
[edit] Device Contexts
[edit] Brushes
Windows uses brushes to paint colors and fill areas with predefined patterns. Brushes have a minimum size of 8X8 pixels and like pens, have three basic characteristic: size, pattern and color. With their 8X8 pixel minimum size,brushes are said to have a pattern, not a style as pens do. The pattern may be a solid color, hatched, diagonal or any other user definable combination.
[edit] Pens
Pens are used to create borders around shapes you have drawn.