We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
系统为 Arch Linux,KDE Wayland。我设置了屏幕缩放为 1.25,导致获取到的屏幕宽和高是缩放前的宽高。
举个例子,我的屏幕实际分辨率为 1080P:
println!("Resolution: {}x{}", monitor.width(), monitor.height()); println!( "Real resolution: {}x{}", monitor.width() as f32 * monitor.scale_factor(), monitor.height() as f32 * monitor.scale_factor() );
输出如下结果:
Resolution: 1536x864 Real resolution: 1920x1080
但实际上,截图保存后的图片仍为 1080P,此时图片宽高就与获取到的屏幕宽高不符了。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
系统为 Arch Linux,KDE Wayland。我设置了屏幕缩放为 1.25,导致获取到的屏幕宽和高是缩放前的宽高。
举个例子,我的屏幕实际分辨率为 1080P:
输出如下结果:
但实际上,截图保存后的图片仍为 1080P,此时图片宽高就与获取到的屏幕宽高不符了。
The text was updated successfully, but these errors were encountered: