Skip to main content
gamedev.net
🔒 Locked

[.net] Flickerless GDI+

Started by FenixRoA Oct 28, 2004 at 10:36 PM 1 replies 600+ views
Original Post
FenixRoA
FenixRoA
How do I make GDI+ drawn graphics flickerless in C#? EDIT: wasn't really specific before
Dmytry
Dmytry
1: it's probably purely api-specific question. I'll answer non-api specific part: the answer is "doublebuffering" (and google).

Just patiently wait while it will be moved to .net - relared forums.(don't crosspost!)(if you want you can report your post to moderator)
ernow
ernow
Like this in the OnPaint:

Bitmap b = new Bitmap(this.Width, this.Height, e.Graphics);
Graphics g = Graphics.FromImage(b);

g.Draw...
g.Draw...

e.Graphics.DrawImageUnscaled(b, 0, 0);
b.Dispose();
g.Dispose();

Cheers

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.