I using g.DrawImage for output Image like this:
g.DrawImage(Resources.dayPict, x1, myY, 20, 20);
But this way not fast. How I can draw image faster?
P.S. When I draw many images I have delays. Is there a special buffer for this goal?
I using g.DrawImage for output Image like this:
g.DrawImage(Resources.dayPict, x1, myY, 20, 20);
But this way not fast. How I can draw image faster?
P.S. When I draw many images I have delays. Is there a special buffer for this goal?
Helped optimization:
1) Call the method with no size, like this: g.DrawImage(Resources.dayPict, x1, myY);
2) Less Invalidate the panel (only the timer, but not the mouse event)
If I want to resize the Image, I will make the new Image.