let display = Display::primary().unwrap(); let capturer = Capturer::new(display).unwrap(); let (w, h) = (capturer.width(), capturer.height()); often get w=1920,h=1080,but occasionally we get w=4096,h=2160.