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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-0060-4_20
Publisher Name: Apress
Print ISBN: 978-1-59059-419-3
Online ISBN: 978-1-4302-0060-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books