pub fn image_to_se_string(
    img: &RgbaImage,
    dither: bool,
    preserve_transparency: bool
) -> String
Expand description

Converts an image to a string composed of characters that can be displayed in a configured LCD panel. The image will be resized in order to fit an LCD panel.

You first need to use the resized function and pass the result as the img argument.

Arguments

  • img - The image to convert.
  • dither - Whether to dither the image. This results in much better results, so you most likely want it true.
  • preserve_transparency - Whether to preserve transparency, however, only pixels with full transparency (an alpha value of 0) will be preserved.

Examples

Since a proper example would be rather lengthy, simply check out https://github.com/tigerros-SE/image_to_lcd#code-example. And if you haven’t already, look at the usage.