Macaco Posted January 14, 2005 Posted January 14, 2005 Hello, I used this tutorial http://www.codeproject.com/cs/media/showwaveform.asp to draw a wav's 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 wouldn't 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 Quote
Macaco Posted January 14, 2005 Author Posted January 14, 2005 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? Quote
IngisKahn Posted January 14, 2005 Posted January 14, 2005 The fastest way to do it is to use a back buffer and only copy over invalidated regions. Quote "Who is John Galt?"
ThePentiumGuy Posted January 14, 2005 Posted January 14, 2005 Hmm, Form1_Load: me.setstyle(allpaintinginwmpaint,true) me.setstyle(doublebuffer,true) me.setstyle(userpaint,true) Edit: You said panel right? Change "Me" to "Panel1". Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Macaco Posted January 18, 2005 Author Posted January 18, 2005 Panels doesn't have these properties :( Hmm, Form1_Load: me.setstyle(allpaintinginwmpaint,true) me.setstyle(doublebuffer,true) me.setstyle(userpaint,true) Edit: You said panel right? Change "Me" to "Panel1". Quote
ThePentiumGuy Posted January 18, 2005 Posted January 18, 2005 Yikes. Ummm, maybe try using a picturebox, or a label. or draw directly to the form. -TPG Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Macaco Posted January 18, 2005 Author Posted January 18, 2005 Ok, thanks. I solved it fastly by drawing less data samples to get more speed in the draw. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.