[Glade-users] Display data with Glade



On Thu, 09 Dec 2004 00:56:08 +0800
"Ju, Jian" <jianju ee polyu edu hk> wrote:

Hi All,

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? 

Hello Ju.

I would suggest you look into the Gnome canvas - it does most of what you
want:

1) Data is float, and the display can be configured to be antialiased and
scaled, so the library does the work for you.

2) You can work with layers (groups), so you can use one group for the
graticule, another for the data.

John




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]