How to implement a splash-screen using an image with alpha channels transparency/opacity in WinForms?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Take a look at Per Pixel Alpha Blend in C#
回答2:
Depends on what kind of shape your image is. Is it something you can draw using code? If so you could set the forms draw region to a shape, like this:
yourForm.Region = new Region(someShape);
The shape can for example be a polygon with the same shape as your image.