Copy a section of an image and paste it in another?

我的梦境 提交于 2021-02-11 15:24:09

问题


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.

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:

EXAMPLE


回答1:


This looks like what you are looking for.

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



来源:https://stackoverflow.com/questions/4811100/copy-a-section-of-an-image-and-paste-it-in-another

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!