Appendix N. Graphics

This appendix provides information about graphics classes.

Graphics Namespaces

This section describes the most important graphics namespaces and their most useful classes, structures, and enumerated values.

System.Drawing

This namespace defines the most important graphics objects such as Graphics, Pen, Brush, Font, FontFamily, Bitmap, Icon, and Image. The following table describes the namespace's most useful classes and structures.

Classes and Structures

Purpose

Bitmap

Represents a bitmap image defined by pixel data.

Brush

Represents area fill characteristics.

Color

Defines a color's red, green, blue, and alpha components as values between 0 and 255. Alpha = 0 means the object is transparent; alpha = 255 means it is opaque.

Font

Represents a particular font (name, size, and style, such as italic or bold).

FontFamily

Represents a group of typefaces with similar characteristics.

Graphics

Represents a drawing surface. Provides methods to draw on the surface.

Icon

Represents a Windows icon.

Image

Abstract base class from which Bitmap, Icon, and Metafile inherit.

Metafile

Represents a graphic metafile.

Pen

Represents line drawing characteristics (such as color, thickness, and dash style).

Pens

Provides a large number of predefined pens with different colors and width 1.

Point

Defines a point's X and Y coordinates.

PointF

Defines a point's X and Y coordinates with floating-point values.

Rectangle

Defines a rectangle using a Point and a Size.

RectangleF

Defines a rectangle using a PointF and a SizeF ...

Get Visual Basic® 2008 Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.