自动滚动图片 [英] AutoScroll Picture

查看:113
本文介绍了自动滚动图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在面板内有一张图片.我可以按照我想要的方式进行所有工作,除了要绘制矩形,并且在绘制矩形时需要面板自动滚动到矩形的位置.有谁知道最好的方法吗?

在此先感谢

Chris

I have a picture inside a panel. I have everything working the way I want except I am drawing a rectangle and I need the panel to autoscroll to the location of my rectangle as I draw it. Does anyone have any idea the best way to do this?

Thanks in advance

Chris

推荐答案

您可以在内存DC中以完整尺寸绘制它
然后将其区域复制到面板DC :)

You could draw it at full size in a memory DC
and then copy an its region to the panel DC :)


这篇关于自动滚动图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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