Splash-screen with alpha channels transparency/opacity in WinForms

后端 未结 2 1608
轮回少年
轮回少年 2021-01-21 13:16

How to implement a splash-screen using an image with alpha channels transparency/opacity in WinForms?

2条回答
  •  春和景丽
    2021-01-21 13:59

    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.

提交回复
热议问题