PeachDrawing.Core

PeachDrawing.Core.Canvas

Canvas.DrawRectangle Method

Overloads  
DrawRectangle(Brush, double, double, double, double) Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
DrawRectangle(Pen, double, double, double, double) Draws a rectangle specified by a coordinate pair, a width, and a height.

Canvas.DrawRectangle(Brush, double, double, double, double) Method

Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.

public abstract void DrawRectangle(PeachDrawing.Core.Brush brush, double x, double y, double width, double height);

Parameters

brush Brush

Brush that determines the characteristics of the fill.

x System.Double

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

y System.Double

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

width System.Double

Width of the rectangle to fill.

height System.Double

Height of the rectangle to fill.

Canvas.DrawRectangle(Pen, double, double, double, double) Method

Draws a rectangle specified by a coordinate pair, a width, and a height.

public abstract void DrawRectangle(PeachDrawing.Core.Pen pen, double x, double y, double width, double height);

Parameters

pen Pen

A Pen that determines the color, width, and style of the rectangle.

x System.Double

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

y System.Double

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

width System.Double

The width of the rectangle to draw.

height System.Double

The height of the rectangle to draw.