<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hey Andrej, i'm intrested in this, could you give me an example of your (final) code?<br><br>Jerónimo Barraco Mármol<br>
<br>
http://nande.com.ar<br>
http://ar.linkedin.com/in/nande<br><br>--- El <b>jue 4-ago-11, Andrej Mitrovic <i>&lt;andrej.mitrovich@gmail.com&gt;</i></b> escribió:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Andrej Mitrovic &lt;andrej.mitrovich@gmail.com&gt;<br>Asunto: Re: [cairo] Isn't there a way to pass multiple points to Cairo? (sorry for duplicate)<br>Para: "Jerónimo Barraco Mármol" &lt;jerobarraco@yahoo.com.ar&gt;<br>Cc: cairo@cairographics.org<br>Fecha: jueves, 4 de agosto de 2011, 16:47<br><br><div class="plainMail">Yeah this was completely my mistake, this is not how waveforms should be drawn.<br><br>The stroking is what took most of the time, not the function calls.<br>The trick is apparently to use an average (or absolute) min and max of<br>several samples and then draw a vertical line between the min and max.<br>And when the waveform is zoomed in the lines can be drawn from one<br>point to another
 without them overlapping each other, which speeds up<br>drawing again.<br></div></blockquote></td></tr></table>