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 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.