xtd 0.2.0
Loading...
Searching...
No Matches

◆ draw_rectangle() [3/4]

void xtd::drawing::graphics::draw_rectangle ( const xtd::drawing::pen pen,
int32  x,
int32  y,
int32  width,
int32  height 
)

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

Parameters
penA xtd::drawing::pen that determines the color, width, and style of the rectangle.
xThe x-coordinate of the upper-left corner of the rectangle to draw.
yThe y-coordinate of the upper-left corner of the rectangle to draw.
widthThe width of the rectangle to draw.
heightThe height of the rectangle to draw.