如何裁剪图像 [英] how to crop an image

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

问题描述

我想使用c#

推荐答案

您在Google上搜索吗?
这是我找到的第一个链接 [ ^ ].
Did you search on google?

Here is the first link that I found [^].


要裁剪图像,请创建一个尺寸合适的新图像,然后在其中绘制所需的部分.如果要提供UI来执行此操作,则只需让用户单击并拖动以定义一个框,即可为其绘制,然后使用其边界进行裁剪.您可能应该尝试自己做,并在遇到问题时提出一些具体问题.
To crop an image, you create a new image of the right size, and draw the section you want into it. If you want to provide UI to do that, you just have the user click and drag to define a box, which you draw for them, and then use it''s bounds to crop with. You should perhaps try to do this for yourself and ask specific questions as you get stuck.


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

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