[−][src]Function gdl::background::pattern_from_img
pub fn pattern_from_img(
width: u32,
height: u32,
background_color: Rgb,
img: DynamicImage
) -> DynamicImage
Create a patterned background by overlaying an image in a series of rows and columns. Returns a DynamicImage.
Arguments
width
- u32 - Desired width of final graphicheight
- u32 - Desired height of final graphicbackground_color
- Rgb color the background should comprise of.img
- A DynamicImage to be painted onto the background in a pattern.