Fundamentals of
C++

Totally free education on the Internet

About · FAQ ·Tell a Friend · Comments  · Course Home Page  ·  IT Learning Center

About this Course

coverIT05.jpg (2354 bytes)

This course is intended for serious computer hobbyists, IT students, and IT professionals. You need Windows and Visual C++ installed.

The free online textbook for this course is Visual C++ 6 Unleashed . Read the Introduction to the book.

offiste01.jpg (430 bytes) Indicates links that take you away from the Free-Ed.Net site. Use the links on these offsite pages carefully, and use the Back function on your browser to return to the assigments.

 

Lesson 6. Working with Device Contexts and GDI Objects

The device context, or DC, is the interface between an application that draws graphics and text on a two-dimensional surface and the device drivers and hardware that render those graphics.

Applications can draw with the same graphics device interface (GDI) functions, regardless of the actual hardware used, to achieve a consistent image to the best capabilities of the device.

The device context also can be interrogated to inform an application of the capabilities and dimensions supported by the device. The device context can use this dimensional information to allow an application to render images in physical coordinate systems, such as inches and millimeters.

Reading Assignments

Read the following sections from your free online textbook:

offiste01.jpg (430 bytes) Device Contexts in MFC
offiste01.jpg (430 bytes) Brushes and Pens
offiste01.jpg (430 bytes) MFC Classes for GDI Operations
offiste01.jpg (430 bytes) Working with Fonts
offiste01.jpg (430 bytes) Creating and Loading Bitmaps
offiste01.jpg (430 bytes) Drawing with Bitmaps
offiste01.jpg (430 bytes) Creating a Device-Independent Bitmap Class
 

Learning Activities

  1. Use this search box to refine and expand your understanding of new terms and concepts in the reading assignments.

Custom Search
  1. offiste01.jpg (430 bytes) Read the Summary of the lesson.


Web design and curriculum: David L. Heiserman

Copyright © 2005 SweetHaven Publishing Services
All Rights Reserved