Results 1 to 3 of 3

Thread: Avoiding Flickering effect

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    1

    Post

    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

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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 ).

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Location
    Portland, OR
    Posts
    16

    Question

    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
  •  



Click Here to Expand Forum to Full Width