用于MFC应用程序中图形显示的放大镜窗口 [英] Magnifier window for graphic display in mfc application

查看:202
本文介绍了用于MFC应用程序中图形显示的放大镜窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序有一个图形窗口,该窗口用于图形显示要在树中显示的组件.有时组件的数量很大,因此图形的尺寸也很大.

在这种情况下,我很难看到特定的组件,因此我想添加一个放大镜窗口,以便可以使用该放大镜窗口在图形中找到某些特定的组件,就像在Google地图中一样.就像您回想起帝国时代时一样,那儿有一扇小窗户,我们可以通过它浏览到任何想要的王国区域.

非常感谢您的帮助.

My application has a graphic window which is used for graphical representation of a component which is to display in a tree. Some times the components are very large in numbers so the graph size is also huge.

In this situation it is difficult for me to see a particular component so I want to add a magnifier window so I can locate some of the particular components in the graph with this magnifier window, just like in Google maps. its just like if you remember when you play age of empire , one small window was there by which we can navigate to any desired area of kingdom.

Any help is greatly appreciated.

推荐答案

您需要在内存位图中使用完整的图片/屏幕,而不是缩小图片/屏幕.

我喜欢该文章的代码,因为它运行速度很快:为CBitmap添加了用户可扩展的快速图像处理支持 [ ^ ]
you need the complete picture/screen in a memory bitmap and than deflate it.

I like the code of that article because it is runnung fast: Add fast user-extensible image processing support to CBitmap[^]


这篇关于用于MFC应用程序中图形显示的放大镜窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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