Slow 2d redrawing panel problem

Macaco

Active member
Joined
Jul 5, 2004
Messages
39
Hello,

I used this tutorial

http://www.codeproject.com/cs/media/showwaveform.asp

to draw a wavs waveform in a panel, the problem is that it draws the waveform really slow in the panel and each time I scroll the bar to see all the form it redraws it (if not I wouldnt see the waveform well) and it scrolls really slowly.

Is there any way to solve this ??? to make it go faster???

thanks for your help
 
Maybe instead of drawing it to the panel, draw it to a image file and then load the image file into the panel??? is it possible?
 
Panels doesnt have these properties :(


ThePentiumGuy said:
Hmm,
Form1_Load:
me.setstyle(allpaintinginwmpaint,true)
me.setstyle(doublebuffer,true)
me.setstyle(userpaint,true)

Edit: You said panel right? Change "Me" to "Panel1".
 
Ok, thanks.

I solved it fastly by drawing less data samples to get more speed in the draw.
 
Back
Top