C#winforms快速向界面添加大图片并快速显示. [英] C # winforms quickly add large pictures to the interface and fast display.

查看:369
本文介绍了C#winforms快速向界面添加大图片并快速显示.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#winforms快速将大图片添加到界面并快速显示.C#用什么方法快速有效地将大图片(例如100M或更多)添加到程序界面,并实现快速图像显示,例如缩放,谢谢.

C # winforms quickly add large pictures to the interface and fast display.C # what method to rapidly and efficiently add big picture(like 100M ,or more) to the program interface, and achieve fast image display, such as zoom, drag, and so on.Thanks.

推荐答案

将缩略图保留在数据库中并加载它.而已.您无法快速加载巨大的图像并执行您要说的操作.但是,一个100 MB的图像非常巨大,为什么您需要以该大小显示它?以控件的大小显示它,并在放大时加载更大的图像.我想像一下,需要一个切片库来保持完全缩放的100 MB图像上的平移速度的良好质量.
Keep a thumbnail in your DB and load that instead. That''s it. There''s no way you can quickly load a huge image and do the operations you''re speaking of. But, a 100 MB image is huge, why would you need to show it at that size ? Show it at the size of your control, and load larger images as you zoom in. A tiling library would be needed to maintain good quality of pan speed on a 100 MB image fully zoomed, I would imagine.


这篇关于C#winforms快速向界面添加大图片并快速显示.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆