[−][src]Function gdl::text::draw_text
pub fn draw_text(
image: &mut DynamicImage,
text: &str,
x: u32,
y: u32,
font: &str,
font_size: f32,
rgb: &Rgb
)
Draw text onto an image.
Arguments
img
- Mutable reference to a DynamicImage.text
- Text string to be drawn.x
- X-coordinate of top corner of text.y
- Y coordinae of top corner of text.font
- Font name. Fonts available include Roboto-Regular, BebasKai, Roboto-Light, among many others. Full list of fonts available coming soon.font_size
: f32 that represents the font's size.rgb
: Rgb text color.