[Gtk-sharp-list] Creating Rsvg.Pixbuf from a Stream AtSize

Filip filip26 at gmail.com
Mon Jun 27 10:50:21 EDT 2005

Hi all,

let me explain my use case. My application needs to draw small pictures, 
that are stored as a SVG, onto Drawable. The reason why i need the method 
that i'm asking for is that i need rescale the SVG picture size at runtime 
(a window change its size, an explicit user request, etc.) because the 
pictures are already loaded in a memory. 

The SVG picture needs to be converted into Pixbuf because one picture is 
drawn repeatedly and i think that is faster directly draw a Pixbuf than 
process a SVG.

I know that i can load the SVG picture each time when i need the new size, 
it works, but ...

Thank you all for your help

On 6/26/05, Miguel de Icaza <miguel at ximian.com> wrote:
> Hello,
> > I'm looking for a way how to create a Pixbuf from a Stream at
> > specified size ?
> >
> > e.g. Rsvg.Tool.PixbufFromStreamAtSize(Stream, int, int)
> If the image comes from a Stream, it probably already contains the 
> dimensions.
> What is it that you have in mind exactly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://galactus.ximian.com/pipermail/gtk-sharp-list/attachments/20050627/0efcc982/attachment.html

More information about the Gtk-sharp-list mailing list