如何在没有任何图像的情况下缩放图片框 [英] How do i zoom a picturebox without any images

查看:133
本文介绍了如何在没有任何图像的情况下缩放图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为图片框创建缩放功能,但是我搜索网络,大部分结果都是使用图像相关的。如何在不使用图像的情况下缩放一个.Thx

I want to create a zoom function for a picturebox but I search the net and most of the result are related using images.How can I zoom one without using an image.Thx

推荐答案

检查这3个解决方案

解决方案1 ​​ [ ^ ]

Solution 2 [ ^ ]

解决方案3 [ ^ ]
Check this 3 Solutions
Solution 1[^]
Solution 2[^]
Solution 3[^]


你的问题有点令人困惑,好像没有图片,你在缩放什么?



无论如何,因为唯一的方法是按照新的比例和位置订购图像,你完全违背了使用PictureBox在第一位。所以,你可能会从头开始制作一个自定义控件。
Your question is a bit confusing as if there is no picture, what are you zooming?

In any event, since the only way to do this is to order draw the image in the new scale and position, you're completely defeating the purpose of using a PictureBox in the first place. So, you'd be making a custom control, probably from scratch anyway.


这篇关于如何在没有任何图像的情况下缩放图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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