🐛 fix(camera_frame): 修复了在设置图像时未正确调整颜色框架大小的问题

This commit is contained in:
conglinyizhi 2024-12-07 13:36:12 +08:00
parent 15d0abbc6a
commit a7e6a51914
1 changed files with 0 additions and 1 deletions

View File

@ -81,7 +81,6 @@ fn main() {
let fltk_l_image = let fltk_l_image =
RgbImage::new(l_data.as_raw(), w, h, ColorDepth::L8).unwrap(); RgbImage::new(l_data.as_raw(), w, h, ColorDepth::L8).unwrap();
camera_frame.set_image(Some(fltk_l_image)); camera_frame.set_image(Some(fltk_l_image));
color_frame.set_size(w, h);
camera_frame.redraw(); camera_frame.redraw();
let duration = start.elapsed(); let duration = start.elapsed();
println!("RGB8 Frame Draw use time: {:?}", duration); println!("RGB8 Frame Draw use time: {:?}", duration);