PeachDrawing.Core

PeachDrawing.Core.Rect

Rect Constructors

Overloads  
Rect(double, double, double, double) Initializes a new instance of the Rect class with the specified location and size.
Rect(PaintPoint, Size) Initializes a new instance of the Rect class with the specified location and size.

Rect(double, double, double, double) Constructor

Initializes a new instance of the Rect class with the specified location and size.

public Rect(double x, double y, double width, double height);

Parameters

x System.Double

The x-coordinate of the upper-left corner of the rectangle.

y System.Double

The y-coordinate of the upper-left corner of the rectangle.

width System.Double

The width of the rectangle.

height System.Double

The height of the rectangle.

Rect(PaintPoint, Size) Constructor

Initializes a new instance of the Rect class with the specified location and size.

public Rect(PeachDrawing.Core.PaintPoint location, PeachDrawing.Core.Size size);

Parameters

location PaintPoint

A PaintPoint that represents the upper-left corner of the rectangular region.

size Size

A Size that represents the width and height of the rectangular region.