GDI+ Structures

In order to program using GDI+, you need to use a number of simple structures that define points, rectangles, sizes, and colors. These are quite straightforward, but their use involves a few details, such as the existence of both integer and floating-point versions, converting among the structures, and so forth. In this section we summarize key features of these structures.

Coordinates and sizes can be expressed as either integer or floating-point numbers. Some methods use one type, and other methods use the other type, so you need to be familiar with both. Integer structures are Point, Size, and Rectangle. Floating-point structures have the same names with an “F” suffix, so they are PointF, SizeF, and RectangleF. Operators are ...

Get Application Development Using Visual Basic® and .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.