[−][src]Function gdl::elements::draw_opaque_rect
pub fn draw_opaque_rect(
img: &mut DynamicImage,
background_color: &Rgb,
opacity: u8,
width: u32,
height: u32,
x_pos: i32,
y_pos: i32
)
Draw an opaque rectangle, where the opacity is set to a certain u8 value.
img
- A mutable ref to a DynamicImage.background_color
- Rgb color of rectangle.opacity
- The opacity of the 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