特定部分使用VB.net放大图片框 [英] Particular portion zoom in Picture box using VB.net

查看:137
本文介绍了特定部分使用VB.net放大图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friends,



我开发了使用图片框的工具。我正在向图片框显示tif文件。如何放大和缩小图片框中的特定部分(由我选择部分)。



希望我的请求合理。



提前感谢。

Hello Friends,

i have developed tool using picture box. i am showing tif file to picture box. how to zoom in and zoom out in particular portion in picture box (portion selecting by me).

hope my request is reasonable.

thanks in advance.

推荐答案

对于图片框的选定部分...

运行时您正在选择部分

假设绘制矩形

那么你应该剪辑表格的那一部分(根据你绘制的矩形的位置和大小并保存它) )作为An 图像

现在将该图像分配给其他大图片框的背景属性,并将其图像显示样式设置为拉伸



用于zoomin缩小整个图片...

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/ac205286-72a4-4c45 -9558-876b49b3a44d [ ^ ]

http://www.dreamincode.net/forums/topic/60836-how-to-zoom-a-picturebox/ [ ^ ]

http://www.programmersheaven.com/mb/VBNET/198104/198104/picturebox---how-to-zoom-in--out/ [ ^ ]

http://codingangel.com/how-to-zoom- picture-in-picturebox-using-vb-net / [ ^ ]



快乐编码!

:)
for selected portion of picture box...
runtime you are selecting portion
suppose draw rectangle
then you should clip that portion of form (as per location & size of rectangle you have drawn and save it) As An Image.
Now assign that image to other big picture box''s background property, and set it''s image display style to Stretch

for zoomin zoomout whole picture...
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/ac205286-72a4-4c45-9558-876b49b3a44d[^]
http://www.dreamincode.net/forums/topic/60836-how-to-zoom-a-picturebox/[^]
http://www.programmersheaven.com/mb/VBNET/198104/198104/picturebox---how-to-zoom-in--out/[^]
http://codingangel.com/how-to-zoom-picture-in-picturebox-using-vb-net/[^]

Happy Coding!
:)


这篇关于特定部分使用VB.net放大图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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