Function draw_image2
pub unsafe fn draw_image2(
data: &[u8],
x: i32,
y: i32,
w: i32,
h: i32,
depth: i32,
line_data: i32,
)
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()
.
A negative depth flips the image horizontally,
while a negative line data flips it vertically.
Allows passing a line-data parameter
§Errors
Errors on invalid or unsupported image formats
§Safety
Passing wrong line data can read to over or underflow