Splash-screen with alpha channels transparency/opacity in WinForms

孤人 提交于 2019-12-02 04:12:27

问题


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.



来源:https://stackoverflow.com/questions/851738/splash-screen-with-alpha-channels-transparency-opacity-in-winforms

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