Basic Image Manipulation using GDI+ and C#
(Page 1 of 4 )
GDI+ offers certain advantages over GDI when trying to manipulate images on Windows. One of the best is the ability to work with C#. This article will show you how to perform basic image manipulation with the GDI+ library in C#.
Image manipulation is considered one of the more difficult tasks in graphics programming. This is even more true if the operating system under consideration is Windows. The reason is that to achieve efficiency there is no better option than the Windows API.
The APIs provided by Windows comes under the GDI roof. GDI is short for Graphics Device Interface. However, GDI works with low level graphics. So to use it a good understanding of how Windows work is required. Even with MFC, GDI is a bit complicated.
But with the evolution of GDI+ the scenario is changing. The major change between GDI and GDI+ is that GDI exposes only APIs for unmanaged code whereas GDI+ provides for both managed as well as unmanaged code. Hence GDI+ is oriented towards .Net based languages. And in the world of .Net, one of the best options is C#.
So in this discussion, I will be focusing on how to use the basic image manipulations using the GDI+ library in C#. The first section will focus on the terminology used by GDI+ and image manipulation in general. In the second section I will detail the steps involved in image manipulation using GDI+. The last section will be about using the basic image manipulation within a real world application. That's the outline for this discussion.
Next: Image Manipulation using GDI : the Terminology >>
More C# Articles
More By A.P.Rajshekhar