imageproc::drawing

Function draw_text

Source
pub fn draw_text<'a, I>(
    image: &'a I,
    color: I::Pixel,
    x: i32,
    y: i32,
    scale: Scale,
    font: &'a Font<'a>,
    text: &'a str,
) -> Image<I::Pixel>
Expand description

Draws colored text on a new copy of an image.

scale is augmented font scaling on both the x and y axis (in pixels).

Note that this function does not support newlines, you must do this manually.