wyrd
Well-known member
Edit: I got the answers to my questions.. http://www.codeproject.com/csharp/flicker_free.asp
I was looking at the Windows API functions for drawing. It looks easy enough (get handle from Bitmap, use it w/ BitBlt, DeleteObject on handle when done).
I assume Id have to do my own double buffering if I used the Windows API right? Also I take it putting the Bitmap.GetHbitmap() and DeleteObject() inside a loop would be bad right? I just want to clarify that its not just getting a reference to a handle, but actually creating the object in memory THEN giving you the handle reference to that object? If thats the case, can I do Bitmap.Dispose() after Bitmap.GetHBitmap() w/o effecting it? That way I dont have two objects in memory of the same bitmap (assuming GetHbitmap is creating another object in memory).
Lots of silly questions, but Im unfamiliar with the Windows API. I just want to make sure I fully understand what its doing so I can use it efficiently.
Thanks in advance.
I was looking at the Windows API functions for drawing. It looks easy enough (get handle from Bitmap, use it w/ BitBlt, DeleteObject on handle when done).
I assume Id have to do my own double buffering if I used the Windows API right? Also I take it putting the Bitmap.GetHbitmap() and DeleteObject() inside a loop would be bad right? I just want to clarify that its not just getting a reference to a handle, but actually creating the object in memory THEN giving you the handle reference to that object? If thats the case, can I do Bitmap.Dispose() after Bitmap.GetHBitmap() w/o effecting it? That way I dont have two objects in memory of the same bitmap (assuming GetHbitmap is creating another object in memory).
Lots of silly questions, but Im unfamiliar with the Windows API. I just want to make sure I fully understand what its doing so I can use it efficiently.
Thanks in advance.
Last edited by a moderator: