This article has been excerpted from book "Graphics Programming with GDI+".In this article we will discuss addition functionality of rectangles and regions.We will cover the following key topics:
A rectangle has three properties: starting point, height, and width. Figure 6.1 shows these properties where the starting point is the top left.Suppose you wanted to draw a rectangle from point (1,2) with height 7 and width 6. The final rectangle would look like Figure 6.2.The filled rectangle occupies the entire within the range of its height and width.FIGURE 6.1: A rectangleFIGURE 6.2: A rectangle with starting point (1,2), height 7, and width 6The Rectangle StructureA rectangle object stores the top left corner and height and width of a rectangle region. In this section we will see how to create and use the rectangle structure.ConclusionHope the article would have helped you in understanding Rectangle and Regions in GDI+. Read other articles on GDI+ on the website.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: