png to bmp in C#

后端 未结 3 1156
旧时难觅i
旧时难觅i 2020-12-07 00:18

is there anyway that I can convert a png to a bmp in C#?

I want to download a image then convert it to a bmp then set it as the desktop background.

I have th

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 00:57

    Have you tried this?

    Image imgFile = Image.FromFile(aFileName);
    imgFile .Save(strOutFileName, ImageFormat.Bmp);
    

提交回复
热议问题