Coordinates in libgnomecanvas



Hello.

I want to use a gnome_canvas widget to plot
a graph. But I want to normalize the coordinates,
so that the world coordinate (0.0, 0.0) would be on the
top left corner of the canvas, and (1.0, 1.0) would
be at the bottom right corner of the canvas. This way
the center of the canvas will always have coordinate
(0.5, 0.5). If the canvas size (width and/or height)
changes, the drawings on the canvas should change
accordingly, shinking or enlarging accordingly.

Is this possible? If so, how?

Romildo



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