✨ feat(color_frame): 通过重新调整尺寸从而刷新图像
This commit is contained in:
parent
07c8591bfc
commit
8e3a43173f
|
@ -72,6 +72,8 @@ fn main() {
|
||||||
RgbImage::new(rgb_data.as_raw(), w, h, ColorDepth::Rgb8).unwrap();
|
RgbImage::new(rgb_data.as_raw(), w, h, ColorDepth::Rgb8).unwrap();
|
||||||
camera_frame.set_image(Some(fltk_l_image));
|
camera_frame.set_image(Some(fltk_l_image));
|
||||||
color_frame.set_image(Some(fltk_rgb_image));
|
color_frame.set_image(Some(fltk_rgb_image));
|
||||||
|
// 通过重新调整尺寸从而刷新图像
|
||||||
|
color_frame.set_size(w, h);
|
||||||
camera_frame.redraw();
|
camera_frame.redraw();
|
||||||
color_frame.redraw();
|
color_frame.redraw();
|
||||||
let duration = start.elapsed();
|
let duration = start.elapsed();
|
||||||
|
|
Loading…
Reference in New Issue