text_on_image

Crates.iotext_on_image
lib.rstext_on_image
version0.1.0
sourcesrc
created_at2024-02-16 22:40:05.019134
updated_at2024-02-16 22:40:05.019134
descriptionAn easier way to place text on images.
homepagehttps://github.com/wyatt-bowen/text_on_image
repositoryhttps://github.com/wyatt-bowen/text_on_image
max_upload_size
id1142852
size84,366
(wyatt-bowen)

documentation

README

Placing text on images just got easier.

While making a bingo card generator using image and imageproc, I recognized a need for a better way to place text on images. This crate depends on those two crates, but provides users with extra functionality.

Why use this?

If you are looking to place multiple lines of text on an image that are spatially related, then this should be a better option than using imageproc's draw_text_mut function.

Features

  • Text justification: Left, Center, Right
  • Vertical anchor: Top, Center, Bottom
  • Text wrapping: Choose a max length in pixels, and your text will wrap to a new line, respecting your choices for text justification and vertical anchoring.
Commit count: 0

cargo fmt