GDI+ Reference

Classes

GDI+ provides a rich set of classes for graphics programming. These classes encapsulate various aspects of drawing, image manipulation, text rendering, and more.

Core Graphics Objects

Class Name Description
Graphics Represents a drawing surface and provides methods for drawing shapes, images, and text.
Pen Defines how lines and curves are drawn, including color, width, and style.
Brush Abstract base class for objects that can fill shapes. Specific brush types include SolidBrush, HatchBrush, TextureBrush, and LinearGradientBrush.
Font Represents a typeface, style, and size of text.
StringFormat Specifies layout and formatting information for drawing text, such as alignment and word wrapping.

Image Handling

Class Name Description
Image Abstract base class for GDI+ image objects. Derived classes include Bitmap and Metafile.
Bitmap Represents a raster image. Allows direct pixel access and manipulation.
Metafile Represents a Windows metafile image.
ImageDecoder Provides methods to query capabilities of image codecs.
ImageEncoder Provides methods to query capabilities of image codecs for encoding.

Geometric Shapes and Paths

Class Name Description
Path Represents a complex geometric shape consisting of lines, curves, and figures.
PathGradientBrush Defines a gradient that is defined by a path.
Matrix Represents a 3x3 matrix used for 2D transformations (translation, rotation, scaling, skewing).

Color and Palettes

Class Name Description
Color Represents an ARGB (Alpha, Red, Green, Blue) color.
ColorPalette Represents a palette of colors for an image.

For detailed information on each class, including its methods and properties, please refer to the specific documentation pages linked above.