加载了一张bmp32的图片  有alpha通道
bmp.Save(@"c:\111.png", ImageFormat.Png);
保存后无透明效果自带的没用?要自己提取pal跟data写代码生成png?
???

解决方案 »

  1.   

    我要透明的效果,一直用FireWork,PS没有怎么用,不熟悉,然后加载到界面上。
      

  2.   

    貌似.net framework的winform类库确实不支持png图片保存为透明。
      

  3.   

    Approach 1:
    Image img = (Image) bmp; 
    img.Save(filename, ImageFormat.Png);  // Correct PNG save Approach 2:
    Write that bmp to FileStream or MemoryStream and then save the stream content to png file.Let me know if any of them works ...