复制图像的一部分并将其粘贴到另一个? [英] Copy a section of an image and paste it in another?

查看:67
本文介绍了复制图像的一部分并将其粘贴到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们说我在VB.NET中得到了两个图像.两者都是100x100.

Lets say I got two images in VB.NET. Both are 100x100.

然后我要复制第一张图像的一部分并将其粘贴到第二张图像上.

Then I want to copy a section of the first image and paste it on the second image.

例如,假设我要从第一张图像中拾取矩形(25,25,75,75),然后将其粘贴到第二张图像的(25,25)点.

For example, lets say I want to pickup the rectangle (25,25,75,75) from the first image, and paste it at (25,25) point of the second image.

对不起,很难解释,所以这是一个示例图片:

Sorry, it is hard to explain, so here's an example image:

推荐答案

这看起来像您要找的东西.

This looks like what you are looking for.

http://www.vb-helper.com/howto_net_drawimage_copy_part.html

这篇关于复制图像的一部分并将其粘贴到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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