.NET Winform - 用户控件的缩略图
我有一个使用一些用户控件的应用程序。 我想在加载用户控件以供使用时拍摄用户控件的缩略图,并将其添加到流程布局面板中。
在哪里可以找到有关在加载用户控件时制作缩略图的信息?
I have an app which uses some usercontrols. I want to take a thumbnail image of the usercontrols when they are loaded for use and add them to a flowlayout panel.
Where can I find information on making a thumbnail image of a usercontrol when it's loaded?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道在显示之前有什么方法可以做到这一点,但是一旦它出现在屏幕上,您可以使用如下方法:
您可以使用它来获取任何控件的缩略图,如下所示:
I don't know of a way to do it before it has been displayed, but once it is on the screen you could use an approach like this:
You can use it to get a thumbnail of any control, like this: