Re: drawing on a background image



Quoted by a collection of power cheese
For `christophe Meyer <chr meyer nerim net>' 
On Thursday, 22 January 2004 (14:11):


In order to write weather satellite tracking software (using glade) i have to 
draw satellites footprints on a background earth-image such in this windows 
example:
http://www.david-taylor.pwp.blueyonder.co.uk/software/wxtrack_at_work.htm
Does anyone know how to draw on a background image ? Has anyone
already done something like that ? Has anyone an example of such an 
application ? How can i plot a simple pixel on an existing image ?


        You can use a GtkImage to load the background, then use GDK's drawing
primitives to plot pixels, lines, and whatever else you might need (just draw on
image->window in the "expose" event).

-- 

 Leandro Pereira              (oO)           <leandro linuxmag com br>
                              /||\                  www.mindcrisis.tk

        "Se usuário fosse arquivo, a extensão seria .fdp" 
                -- Anônimo




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