Skip to Content
Windows Graphics Programming Win32 GDI and DirectDraw®
book

Windows Graphics Programming Win32 GDI and DirectDraw®

by Feng Yuan
December 2000
Intermediate to advanced
1280 pages
28h 56m
English
Pearson
Content preview from Windows Graphics Programming Win32 GDI and DirectDraw®

Chapter 8. Lines and Curves

Connecting pixels together forms lines and curves. So once you know how to draw single pixels, drawing lines and curves is just a matter of mathematics and computer programming. But the lines and curves used in real life come in different colors, styles, widths, patterns and other decorations; drawing them can be quite involved.

This chapter will cover the GDI concepts and features supporting line and curve drawing; these are binary raster operations, background modes, pens, lines, curves, and paths.

BINARY RASTER OPERATIONS

When you call the SetPixel function to draw a color pixel on a device surface, the color specifier is translated into a color format (physical color) suitable for the device frame buffer, then the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Graphics Programming with GDI+

Graphics Programming with GDI+

Mahesh Chand

Publisher Resources

ISBN: 0130869856Purchase book