[−][src]Function gdl::presets::centre_text
pub fn centre_text(background_img: &mut DynamicImage, main_text: &str)
Preset: Centre text, with background image.
Arguments
img
- A mutable ref to a DynamicImage.main_text
- Main heading for the graphic.width
- u32 - Desired width of final graphicheight
- u32 - Desired height of final graphic