[−][src]Function gdl::elements::draw_solid_rect
pub fn draw_solid_rect(
img: &mut DynamicImage,
background_color: &Rgb,
width: u32,
height: u32,
x_pos: i32,
y_pos: i32
)
Draw a solid rectangle with a given background colour.
Arguments
img
- A mutable ref to a DynamicImage.background_color
- Rgb color of rectangle.width
- u32 - Desired width of rectangle.height
- u32 - Desired height of rectangle.x_pos
- X-coordinate of top corner of rectangle onimg
y_pos
- y-coordinate of top corner of rectangle onimg