Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Graphical Component Question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

I have created a graphical component using the Canvas.Rectangle and Canvas.FillRect methods, but when the component is painted, I get constant flicker. Any ideas on how to remove the flicker ?

Thanks
 
SolStic_Sa,

There are several ways to handle this, but the most common is to create a temporary bitmap where you direct your Rectangle and FillRect calls to and then use BitBlt or StretchBlt to assign the final results to the actual canvas.

There are several articles on the Net that discuss the technique. Here are a few:

-- -- -- -- (part 3 of 4, this actually appears to be the most in-depth article.)

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top