Function imageproc::drawing::draw_text [] [src]

pub fn draw_text<I>(
    image: &mut I,
    color: I::Pixel,
    x: u32,
    y: u32,
    scale: Scale,
    font_data: &[u8],
    text: &str
) -> Image<I::Pixel> where
    I: GenericImage,
    <I::Pixel as Pixel>::Subpixel: ValueInto<f32> + Clamp<f32>,
    I::Pixel: 'static, 

Draws colored text on an image in place. 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