Re: Isn't there a way to pass multiple points to Cairo? (sorry for duplicate)
Jerónimo Barraco Mármol <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
Hey Andrej, i'm intrested in this, could you give me an example of your (final) code? Jerónimo Barraco Mármol http://nande.com.ar http://ar.linkedin.com/in/nande --- El jue 4-ago-11, Andrej Mitrovic <[email protected]> escribió: De: Andrej Mitrovic <[email protected]> Asunto: Re: [cairo] Isn't there a way to pass multiple points to Cairo? (sorry for duplicate) Para: "Jerónimo Barraco Mármol" <[email protected]> Cc: [email protected] Fecha: jueves, 4 de agosto de 2011, 16:47 Yeah this was completely my mistake, this is not how waveforms should be drawn. The stroking is what took most of the time, not the function calls. The trick is apparently to use an average (or absolute) min and max of several samples and then draw a vertical line between the min and max. And when the waveform is zoomed in the lines can be drawn from one point to another without them overlapping each other, which speeds up drawing again. -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo