Skip to Main Content
C# 10.0 All-in-One For Dummies
book

C# 10.0 All-in-One For Dummies

by John Paul Mueller
March 2022
Intermediate to advanced content levelIntermediate to advanced
864 pages
19h 46m
English
For Dummies
Content preview from C# 10.0 All-in-One For Dummies

Chapter 5

Creating Images

IN THIS CHAPTER

Bullet Understanding the System.Drawing namespace

Bullet Determining where the drawing classes fit

Bullet Creating a simple game application using System.Drawing

No one is going to write the next edition of Bioshock using C# directly (although, you might do so using third-party products like Unity Gaming Services, https://unity.com/). It just isn't the kind of language you use to write graphics-intensive applications like shoot-’em-up games.

Still, C# packs a fair amount of power into the System.Drawing classes. (This chapter focuses on the Windows Forms method of creating graphics — the WPF method is different.) Though these classes are somewhat primitive in some areas, and using them might cause you to have to write a few more lines of code than you should, there isn’t much that these classes can’t do with sufficient work.

The drawing capability provided by the .NET Framework is divided into four logical areas by the namespace design provided by Microsoft. All the general drawing capability is in the System.Drawing namespace. Then there are some specialized namespaces:

  • System.Drawing.2D has advanced vector drawing functionality.
  • System.Drawing.Imaging
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

C# Cookbook

C# Cookbook

Joe Mayo
Head First C#, 4th Edition

Head First C#, 4th Edition

Andrew Stellman, Jennifer Greene

Publisher Resources

ISBN: 9781119839071Purchase Link