hi, im creating a simple image editor/drawer and im having problems with flicker when the canvas is refreshd on draw.
ive got
frmPMain->DoubleBuffered = true;
on my form, but im still getting bad flicker when i run my draw shape code such as
void Pixie_Draw::DragSquare( int X, int Y, int Width, int Height, TImage* OriginalImage,Graphics::TBitmap* BackBuffer)
{
Graphics::TBitmap* result = new Graphics::TBitmap();
result->Assign(BackBuffer);
result->Canvas->Rectangle(X,Y,Height,Width);
OriginalImage->Picture->Bitmap->Assign(result);
delete result;
}
are there any other methods i can use to remove it?
im using Borland C++ 6
thanks