Clip an image in a specific shape .NET

拥有回忆 提交于 2019-12-02 09:27:25

You can use SetClip function with the Region as parameter:

https://msdn.microsoft.com/en-us/library/x1zb278e(v=vs.110).aspx

So you need to create Graphics object from Bitmap, set clip with the shape of your flag and then draw image on that Graphics object. That's all.

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