reduce flicker on timage

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 23
Reputation: OnIIcE is an unknown quantity at this point 
Solved Threads: 0
OnIIcE OnIIcE is offline Offline
Newbie Poster

reduce flicker on timage

 
0
  #1
Mar 22nd, 2009
hi, im creating a simple image editor/drawer and im having problems with flicker when the canvas is refreshd on draw.

ive got
  1. frmPMain->DoubleBuffered = true;
on my form, but im still getting bad flicker when i run my draw shape code such as

  1. void Pixie_Draw::DragSquare( int X, int Y, int Width, int Height, TImage* OriginalImage,Graphics::TBitmap* BackBuffer)
  2. {
  3. Graphics::TBitmap* result = new Graphics::TBitmap();
  4. result->Assign(BackBuffer);
  5. result->Canvas->Rectangle(X,Y,Height,Width);
  6.  
  7. OriginalImage->Picture->Bitmap->Assign(result);
  8.  
  9. delete result;
  10. }

are there any other methods i can use to remove it?
im using Borland C++ 6

thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 23
Reputation: OnIIcE is an unknown quantity at this point 
Solved Threads: 0
OnIIcE OnIIcE is offline Offline
Newbie Poster

Re: reduce flicker on timage

 
0
  #2
Apr 5th, 2009
BUMP

anyone got any ideas?! ^.^

after reading a bit more material online, i think it has somthing to do with when repaints called by the assign and the img is cleard and so dosnt have a image for a split second before the new image is aplied and refreshd? am i right there?
if so how can i stop the bugger from doing it! lol

thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC