Splash-screen with alpha channels transparency/opacity in WinForms

后端 未结 2 1603
轮回少年
轮回少年 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.

    0 讨论(0)
  • 2021-01-21 14:02

    Take a look at Per Pixel Alpha Blend in C#

    0 讨论(0)
提交回复
热议问题