[Gtk-sharp-list] Best way to build a zoom effect?
Julien Sobrier
julien at sobrier.net
Thu Mar 16 23:36:05 EST 2006
Crucius, Wesley wrote:
> 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
Thanks. I'll try that. And I guess I still need to modify the picture
size every x milliseconds.
I'm not familiar with the XML library of Mon, and I can't find the "XML
DOM doc". I guess it should be in the class System.XML, but I don't know
in which class.
Thank you
Julien
More information about the Gtk-sharp-list
mailing list