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

◆ draw_rectangle() [4/4]

void xtd::drawing::graphics::draw_rectangle ( const xtd::drawing::pen pen,
float  x,
float  y,
float  width,
float  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.