如何在 WPF 应用程序中的屏幕上显示/放大/拖动 150MB bmp 图像而不出现断断续续的情况?
我有一个应用程序,有一个很大的区域可以查看图像。该图像适合屏幕显示,但具有令人难以置信的高分辨率,大小为 150MB。该程序允许用户无限放大图像并在屏幕上的查看区域内拖动图像。对于前两个级别的缩放,一切都非常顺利,但是一旦我将图像放大几个级别,拖动它就会产生巨大的不稳定延迟。有哪些方法可以提高性能,以便无论我放大多远,所有操作都能继续顺利?
I have an application that has a large area in which an image is viewed. The image fits on screen but has incredibly high resolution and is 150MB in size. The program allows the user to zoom in on the image indefinitely and drag around the image on screen inside of the viewing area. Everything works very smoothly for the first two levels of zoom, but once I zoom into the image several levels, dragging it around produces hugely choppy delays. What are some ways that I could improve performance so that all operations continue to be smooth no matter how far that I zoom in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论