Convert BMP image to PNG with C#. Alpha channel changing? -


i have bitmap image alpha channel transparency. converting bmp image png format. here code:

string tmp = @"c:\mypath\imagename"; using (bitmap changeformat = new bitmap(tmp+".bmp")) {     changeformat.save(tmp + ".png", imageformat.png) } 

everything okay. have png image alpha channel white instead of transparent (which in bmp image).

ps:test window xp, png imgae when open in window 7 ok . , open gimp soft.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -