基于多线程的图片快速预览方法的设计与实现
2017-03-21杜琳
杜琳

摘要:随着计算机技术的发展,电子图片数据已经成为人们传递信息的主要媒介,其规模和数量均呈现爆炸式的增长。如何在大量图片集合中快速预览便成了急需解决的问题。该文提出了一种基于多线程的图片快速预览方法,通过采用为原始图片构造缩略图,和实时监测缩略图缓存与智能成像预测处理,既保证图片预览中用户对于图片质量的要求,也保证了图片预览过程中的平滑性和流畅性。
关键词:图片预览;多线程;快速预览;图片成像;图片缓存
中图分类号:TP391 文献标识码:A 文章编号:1009-3044(2016)33-0078-02
Abstract: With the development of computer technology, electronic picture data has become the main medium for people to transmit information, and the scale and quantity of them have exploded. How to quickly preview in a large collection of pictures has become an urgent need to solve the problem. This paper presents a fast preview method based on multi-thread. By constructing thumbnails for the original pictures and real-time monitoring of thumbnail caching and intelligent image prediction processing, it not only ensures the quality of pictures in the preview, but also ensures the Smoothness and fluency in picture preview.
Key words: picture preview; multi-thread; quick preview; image imaging; picture cache
随着网络技术和Internet的发展,电子图片数据已经成为计算机及其他信息存储介质中的重要组成部分,特别是近来便携设备、智能终端的普及,家庭图片总量和类型呈现爆炸式的增长。据统计,现今图像以及视频等多媒体资源已经超过了网络中各类信息的四分之一。图像由于能够直观地反映出丰富而有趣的信息,成为了当今信息传播中的热门媒介,因此,如何在大量图片集合中快速预览便成了急需解决的问题。目前市面上的一些软件,在百级数量上的图片预览效果尚可,一旦达到千级或以上数量级的图片集合时,成像以及预览的速度都大打折扣,不能满足用户快速预览的要求。
由于图片的快速预览有着很高的实用性以及潜在商业价值,因此受到了研究人员的广泛关注。就连windows操作系统也在一代又一代的系统更新中不断强化着预览功能的性能,可当同一文件夹下图片数量达到上千、上万甚至更多,其预览功能就出现了明显的“迟钝感”,图片的成像需要较长的等待时间才可完成。……
