I need to convert a downloaded image from PNG to BMP and remove the Alpha Channel.
This is my code so far.
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; string file = <span style="color:#A31515; "D:IMGNewImage.bmp";
<span style="color:Blue; string ImageURL = <span style="color:#A31515; "http:\www.domain.comimg.png";
<span style="color:Blue; using (Stream stream = Client.OpenRead(ImageURL))
{
Bitmap bitmap = <span style="color:Blue; new Bitmap(stream);
bitmap.Save(file, ImageFormat.Bmp);
}
[/code]
View the full article
This is my code so far.
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; string file = <span style="color:#A31515; "D:IMGNewImage.bmp";
<span style="color:Blue; string ImageURL = <span style="color:#A31515; "http:\www.domain.comimg.png";
<span style="color:Blue; using (Stream stream = Client.OpenRead(ImageURL))
{
Bitmap bitmap = <span style="color:Blue; new Bitmap(stream);
bitmap.Save(file, ImageFormat.Bmp);
}
[/code]
View the full article