[cairo] Isn't there a way to pass multiple points to Cairo? (sorry for duplicate)

Jerónimo Barraco Mármol jerobarraco at yahoo.com.ar
Thu Aug 4 14:38:53 PDT 2011


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 <andrej.mitrovich at gmail.com> escribió:

De: Andrej Mitrovic <andrej.mitrovich at gmail.com>
Asunto: Re: [cairo] Isn't there a way to pass multiple points to Cairo? (sorry for duplicate)
Para: "Jerónimo Barraco Mármol" <jerobarraco at yahoo.com.ar>
Cc: cairo at cairographics.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110804/f3b82333/attachment.htm>


More information about the cairo mailing list