|
-
Jul 17th, 2000, 08:57 AM
#1
Thread Starter
New Member
Hello everybody,
I am developping an VB application including a picturebox.
The purpose of this picturebox is to create an animated instrument which reacts according to an array of data.
So I use the polygon API function to draw this instrument.
The problem is that I update the displayed graphic 4 times per seconde which creates a very inconfortable flickering(or flashing?) effect.
I do not use any "refresh" function since the picturebox is fully repainted.
Does anyone have any tip to avoid such flickering effect?
Thank you a lot for your help.
MID
-
Jul 17th, 2000, 11:53 AM
#2
PowerPoster
You need a buffer.
First you draw everything into your buffer picture (which is invisible), then you draw the whole buffer to the screen. That prevents flickering, but costs a bit of performance (But it's worth it ).
-
Jul 17th, 2000, 11:06 PM
#3
Junior Member
I want to do the same thing but with a label. The label has prewritten text in it. It label will be moving around the screen.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|