Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access