Rect::Rect(constPoint&,constSize&) method (gdiplustypes.h)

Creates a Rect object by using a Point object to initialize the X and Y data members and a Size object to initialize the Width and Height data members.

Syntax

void Rect(
  [in, ref] const Point & location,
  [in, ref] const Size &  size
);

Parameters

[in, ref] location

Type: const Point

Reference to a Point object that specifies the upper-left corner of this rectangle.

[in, ref] size

Type: const Size

Reference to a Size object that specifies the width and height of this rectangle.

Return value

None

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplustypes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Pens, Lines, and Rectangles

Point

Rect

Rect Constructors

RectF

Size

Using a Pen to Draw Lines and Rectangles