Board index » delphi » Animation/Double Buffering Graphics
d...@dartmouth.edu (Joe Clark)
![]() Delphi Developer |
Mon, 21 Sep 1998 03:00:00 GMT
Animation/Double Buffering GraphicsI am trying to create flicker free graphics in Delphi. The routines I am using in C++ with the Windows API What happens if I don't call invalidate in WMPaint is that every other frame in the animation is filled with In Delphi if I duplicate this logic without the Invalidate call I get the same as C++, every other frame filled Does anyone have example code to do double buffered graphics in Delphi or can explain whats going on void DrawWindow::WMPaint(RTMessage msg) Quote} { // Get window size RECT R; GetClientRect(HWindow, &R); // Create memory bitmap and dc // Draw on the memory dc // Blit to the screen // Clean up Quote} |