Re: Clues needed
- From: Hassan Aurag <aurag CRM UMontreal CA>
- To: spoon hilbert maths utas edu au (spoon)
- Cc: gnome-devel-list gnome org
- Subject: Re: Clues needed
- Date: Tue, 28 Mar 2000 09:50:36 -0500 (EST)
The answer is definitly canvas. You can place images, text (ugly), draw stuff ...
It has scrolling in both directions, anti-alias mode, and free zoom-in zoom-out given by set_pixel_per_unit or such
It also auto-update.
I strongly suggest you go have a look at Havoc's book available in hard-copy or online. Check out gnome web site. And look at the chapter on canvases then read whatever elese you need.
>
> Hi
>
> We're trying to write a fairly simple app with gnome, and I was hoping
> someone would be kind enough to help us get started, and hopefully we
> can work the rest out from the examples and docs.
>
> We have some complex data we wish to visualize. I won't describe it,
> but at the end of the day, this data can be represented as a sequence
> of images.
>
> So all we want is an app that opens a data set, and allows each image
> to be displayed in sequence. There could be many of these images (~
> 300), so we really need something like a scrollbar to select which of
> the images is to be displayed. Ideally, when the app is resized, the
> image would resize to fit.
>
> So the app should have a menu bar with a File menu, with Open and Exit
> items (this we can manage), then below that a horizontal scrollbar and
> below that the image.
>
> Questions.
>
> Should I look at canvases, should I use a pixmap, or should I work
> with an RGB buffer?
>
> When I advance to the next image, do I have to completely destroy the
> image I have or can I just overwrite it?
>
> Do I have to detect the resizing of the app (how is this done?) and
> then resize the image manually, or is there some automatic way of
> doing this?
>
> Any suggestions/code snippets most welcome.
>
> Simon
>
>
> --
> *****************************************************************
> * Simon Wotherspoon _--_|\ *
> * Maths Dept, University of Tasmania / Aus \ *
> * Tasmania, Australia \_.--._/ *
> * spoon@hilbert.maths.utas.edu.au v *
> *****************************************************************
>
>
> --
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]