I'd suggest using Inkscape to draw the text and save it as an SVG document and then use Gdk.Pixbuf to load and render to a bitmap. If the text is static you can just use the ".svg file load with scaling version" of the constructor, otherwise, load the svg into an XML DOM doc, manipulate the width & height attributes of the SVG within the DOM (to scale it), save it as an XMLStream, and then use the stream version of the Pixbuf constructor.
I've done it both ways, so I know either one will work, however it is a bit CPU intensive.
Wes
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Julien Sobrier
Sent: Thu 3/16/2006 9:21 PM
To: [email protected]
Subject: [Gtk-sharp-list] Best way to build a zoom effect?
Hello,
I can't figure out a good way to have a zoom effect on a text: a text
gets from size N to size P, smoothly, as a movie. The only way I can
think of involve using Cairo to draw the text, and then calling the
method Cairo.Context.Scale(double, double) every x milliseconds. Is
there a better way to do that?
Thank you
Julien
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
