Skip to main content
  • 484 Accesses

Abstract

The previous chapters have laid the foundations for creating a Windows 98 graphics application — the facilities which Windows 98 provides specifically to support such an application now need to be investigated a little more deeply. This chapter introduces the Graphics Device Interface (GDI) and discusses how it may be applied to the creation of graphical images. The following topics are covered in some detail:

  • device contexts

  • the WM_PAINT message handler

  • Windows 98 coordinate systems

  • pens and brushes

  • drawing lines and filling rectangles

  • accepting user input from the mouse

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1998 Springer-Verlag London Limited

About this chapter

Cite this chapter

Welmsley, M. (1998). Pens and Brushes. In: Graphics Programming in C++. Springer, London. https://doi.org/10.1007/978-1-4471-0905-1_4

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-0905-1_4

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-1231-0

  • Online ISBN: 978-1-4471-0905-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics