HavocXphere
Honorary Master
[Issue Resolved]
So I'm slowly learning .NET C#.
This works as expected:
This renders a white area, with a red border and red diagonal lines (i.e. crossed out)
I think the Bitmap line is correct, so I'm guessing the Bitmap -> Image conversion is somehow bad. So how do I correctly convert between Image & Bitmap on the fly (both directions pls)?
Thanks
So I'm slowly learning .NET C#.
This works as expected:
Code:
pictureBox2.Image = Image.FromFile(@"C:\Windows\Web\Wallpaper\Windows\img0.jpg");
This renders a white area, with a red border and red diagonal lines (i.e. crossed out)
Code:
Bitmap Pic = new Bitmap(@"C:\Windows\Web\Wallpaper\Windows\img0.jpg");
pictureBox1.Image = (Image)Pic;
I think the Bitmap line is correct, so I'm guessing the Bitmap -> Image conversion is somehow bad. So how do I correctly convert between Image & Bitmap on the fly (both directions pls)?
Thanks
Last edited: