Skip to main content

Rendering Graphical Data with GDI+

  • Chapter
  • 324 Accesses

Summary

GDI+ is the name given to a number of related .NET namespaces, each of which is used to render graphic images to a Control-derived type. The bulk of this chapter was spent examining how to work with core GDI+ object types such as colors, fonts, graphics images, pens, and brushes in conjunction with the almighty Graphics type. Along the way, you examined some GDI+-centric details such as hit testing and how to drag and drop images.

This chapter wrapped up by examining the new .NET resource format. As shown, a *.resx denotes resources using a set of name/value pairs describes as XML. This file can be fed into the resgen.exe utility, resulting in a binary format (*.resources) that can then be embedded into a related assembly. Finally, the ResourceManager type provides a simple way to programmatically retrieve embedded resources at runtime.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Andrew Troelsen

About this chapter

Cite this chapter

(2005). Rendering Graphical Data with GDI+. In: Pro C# 2005 and the .NET 2.0 Platform. Apress. https://doi.org/10.1007/978-1-4302-0060-4_20

Download citation

Publish with us

Policies and ethics