I'm writing a graphic program in C# (at first time).
The pixel of the picture stored in array of varible.
Expand|Select|Wrap|Line Numbers
- public partial class Form1 : Form
- {
- public Bitmap scrBitmap = new Bitmap(1280, 800, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
- public Graphics ScrGraph;
is for the picture.)
I tried using for drawing picture, but nothig happen.
Expand|Select|Wrap|Line Numbers
- ScrGraph.DrawImage(scrBitmap, 0, 0,1280,800);
How use the graphics and the drawimage function properly to update the picture?