Function draw_image
pub fn draw_image(
data: &[u8],
x: i32,
y: i32,
w: i32,
h: i32,
depth: ColorDepth,
) -> Result<(), FltkError> ⓘ
Available on crate feature
dep_fltk
only.Expand description
Draw an image into a widget.
Requires a call to app::set_visual(Mode::Rgb8).unwrap()
.
Doesn’t support transparency, for that you would have to use RgbImage.
§Errors
Errors on invalid or unsupported image formats