Displaying Bitmap in C # application

1

I have the following code in my application:

Bitmap original = new Bitmap("C:/Projeto/Imagens/antialiasing.jpg");
Graphics g = Graphics.FromImage(original);
g.DrawImage(original, 100, 100, 390, 390);

However, the original image is not displayed on the screen. What should I do to display.

    
asked by anonymous 20.11.2016 / 17:00

1 answer

1

Raphael, is this a winform application? Are you showing this image in a PictureBox?

If so, you can put the picture directly in the pictureBox.

Bitmap original = new Bitmap("C:/Projeto/Imagens/antialiasing.jpg");
pictureBox1.Image = original;

Well, I do not know if this was your doubt.

    
21.11.2016 / 11:37