hello people, does anyone know whats the fastest method of redrawing graphics on a windows form without the flickers.
hello people, does anyone know whats the fastest method of redrawing graphics on a windows form without the flickers.
back buffering. This should be a FAQ topic if it isn't (I haven't read the FAQ )
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
right, do any of the canvas methods provide this?
CreateCompatibleDC and CreateCompatibleBitmap // for the back buffer itself
BitBlt //for "copying" the back buffer to the screen once it's been completed
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
Hi, i have tried using BitBlt but it still flickers. Can it be done this way, BitBlt is called from the MouseMove event.
Code:BitBlt(Canvas->Handle,X,Y,BlitToMove->Width, BlitToMove->Height,BlitToMove->Canvas->Handle,0,0,SRCCOPY);
you have to blit a finished product. everything needs to be drawn onto the screen-sized back buffer. and when complete you blit. obviously, blitting alone doesn't stop flickering. You must be sure not to see the in between stages. This is done by only showing in between stages on the back buffer.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
right ok thanks, i'll have another go.
Hi FYB, well about 5 days later i have managed to do it. I would like to say thanks for your help. I appreciate it.