[Glade-users] Display data with Glade
Andrej Prsa
andrej.prsa@guest.arnes.si
Tue, 14 Dec 2004 09:37:53 +0100
Hi,
> I am programming with Glade to display 1024 points 16bit data from an
> Analog to Digital Converter (ADC). The function gdk_draw_lines () or
> gdk_draw_points() seems like a good choice. Apparently I need to scale
> my data in both x- and y-axis so that they can be display by a smaller
> window (e.g. 640*480). In that case, nearly half of the data will be
> lost (from 1024 points downto 640 pixels). I'm wondering if there's any
> other good methods can handle this problem without losing part of the
> data.
>
> I have another question: how can I display a static background, which
> simulats the grids of an oscilloscope, with the dynamic data?
You may take a look at the gtkdatabox library, it is doing exactly what
you're after:
http://www.eudoxos.de/gtk/gtkdatabox/
Best wishes,
Andrej