c# Bitmap.Save transparancy doesn't save in png

前端 未结 10 1377
眼角桃花
眼角桃花 2020-12-03 15:38

I\'m trying to save a Bitmap class that has transparancy as a png file with transparancy. I\'m having no luck.

The bitmap has transparancy, it just doesn\'t save wi

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 15:44

    I just wanted to remind everyone that MakeTransparent, as has been suggested my many individuals here, only makes the specific color transparent. It does not take into account the Alpha Channel of the argb image. So a pixel with an alpha value of 100, for instance, if it does not match the color provided to MakeTransparent, will not have partial transparency.

提交回复
热议问题