J
juvi
Hello,
I am running out of memory. How can I fix this:
//image for pictureBox
Image BGImage;
I load the image first into BGImage when loading main Form:
BGImage = new Bitmap(path + @"\img\bg_default.png");
I am drawing different things onto the picturebox and I need the set back
the image to default every timer tick. I use this for the tick event but this
is going out of memory:
pb_BG.Image = new Bitmap(BGImage);
//draw now something
....
pb_BG.Invalidate();
thx for any help
juvi
I am running out of memory. How can I fix this:
//image for pictureBox
Image BGImage;
I load the image first into BGImage when loading main Form:
BGImage = new Bitmap(path + @"\img\bg_default.png");
I am drawing different things onto the picturebox and I need the set back
the image to default every timer tick. I use this for the tick event but this
is going out of memory:
pb_BG.Image = new Bitmap(BGImage);
//draw now something
....
pb_BG.Invalidate();
thx for any help
juvi