O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required