Function fltk::draw::draw_image[][src]

pub fn draw_image(
    data: &[u8],
    x: i32,
    y: i32,
    w: i32,
    h: i32,
    depth: ColorDepth
) -> Result<(), FltkError>

Draw an image into a widget. Requires a call to app::set_visual(Mode::Rgb8).unwrap()