feat(color_frame): 通过重新调整尺寸从而刷新图像

This commit is contained in:
conglinyizhi 2024-12-07 11:34:42 +08:00
parent 07c8591bfc
commit 8e3a43173f
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ fn main() {
RgbImage::new(rgb_data.as_raw(), w, h, ColorDepth::Rgb8).unwrap();
camera_frame.set_image(Some(fltk_l_image));
color_frame.set_image(Some(fltk_rgb_image));
// 通过重新调整尺寸从而刷新图像
color_frame.set_size(w, h);
camera_frame.redraw();
color_frame.redraw();
let duration = start.elapsed();