Vb.net - 如何从变形图像中剪切方形截面? [英] Vb.net - how to cut square section from deformed image?

查看:82
本文介绍了Vb.net - 如何从变形图像中剪切方形截面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这个问题的部分内容不是很清楚,我会提前道歉:英语不是我的第一语言,而且我不知道我想要描述的某些部分的技术术语。如果问题有些不清楚,请告诉我,我会尝试对其进行适当的编辑。

基本上,我正在尝试用VB.NET编写一个允许用户打开的程序图像并从中剪下一块。使用此图像作为示例,用户应该能够从中剪切绿色方块。在这样的图像上进行这样做不是问题,但理想情况下,程序应该能够从像这个<扭曲的图像中获得相同的结果/ A>。我见过Android的程序,让用户只需选择要剪切的部分的四个角,我想在.NET中实现类似的东西:用户选择角,程序将选择重新整形为矩形。



我尝试了什么:



我试过看对于互联网上类似的代码,但我找不到任何东西(可能是因为我不熟悉确切的术语)。任何人都可以给我一些关于如何进行或者将我重定向到类似项目的提示吗?谢谢

I apologize in advance if parts of this question aren't very clear: English is not my first language and I don't know the technical terms for some parts of what I'm trying to describe. If there's something unclear with the question, let me know and I'll attempt to edit it appropriately.
Basically, I'm trying to write a program in VB.NET that will let the user open an image and cut a single piece from it. Using this image as an example, the user should be able to cut just the green square from it. Doing it on images like that is not a problem, but ideally the program should be able to get the same result from an image as distorted as this one. I've seen programs for Android that let the user simply select the four corners of the section to be cut, and I'd like to implement something similar in .NET: the user selects the corners, the program reshapes the selection into a rectangle.

What I have tried:

I've tried looking for similar code on the Internet, but I haven't been able to find anything (possibly because I'm not familiar with the exact terminology). Can anyone give me some hints on how to proceed, or redirect me to similar projects? Thanks

推荐答案

这就是你要找的东西吗?



*
VB Helper:HowTo:裁剪图片并将结果保存在Visual Basic 2005中 [ ^ ]
Is this what you are looking for?

* VB Helper: HowTo: Crop a picture and save the result in Visual Basic 2005[^]


这篇关于Vb.net - 如何从变形图像中剪切方形截面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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