read image
C#
4
Posts
4
Posters
0
Views
1
Watching
-
i would like to know how to read an image with c# if u can give me a code in witch there are an example developpement
-
i would like to know how to read an image with c# if u can give me a code in witch there are an example developpement
-
You can use this code:
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphisc g = e.Graphisc; Bitmap bmp = new Bitmap("your_image.jpg"); g.DrawImage(bmp, 0, 0); }
-- modified at 9:27 Thursday 16th March, 2006Except that it will leak resources. The Bitmap reading code should ideally read to a member variable ( why do it every time ? ), or at a minimum, should be in a 'using' block. Christian Graus - Microsoft MVP - C++