Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Rect.Rect(const Point, const Size) constructor

Applies to: desktop apps only

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

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

Parameters

location [in, ref]

Type: const Point

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

size [in, ref]

Type: const Size

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

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplustypes.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

Rect
Point
Rect Constructors
RectF
Size
Using a Pen to Draw Lines and Rectangles
Pens, Lines, and Rectangles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show: