Displaying Bitmap in C#application

Asked

Viewed 110 times

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);

But the image is not being displayed on the screen original. What should I do to show off.

1 answer

1


Raphael, is this a winform application? Voce is showing this image in a Picturebox?

If this is the case, you can place the image directly in pictureBox.

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

Well, I don’t know if that was your question.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.