Hi,
I am trying to draw a new bitmap on a DirectDraw Surface every few seconds.
I could only find in the constructor of the Surface an option to change the bitmap. So instead of creating a new surface for every new bitmap I followed this code
IntPtr hDC = surface.GetDc();
Graphics g = Graphics.FromHdc(hDC);
g.DrawImage(bitmap, 0, 0);
g.Dispose();
surface.ReleaseDc(hDC);
Any other better way to do this?