Function imageproc::drawing::draw_text_mut
source · pub fn draw_text_mut<C>(
canvas: &mut C,
color: C::Pixel,
x: i32,
y: i32,
scale: impl Into<PxScale> + Copy,
font: &impl Font,
text: &str
)
Expand description
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.