[Gtk-sharp-list] Gdk.PixbufFormat.IsScalable()

Tamara Tamara <foxxygirltamara@gmail.com>
Mon, 6 Dec 2004 23:13:27 -0800

Gdk.PixbufFormat appears to be not working all that well. As of 1.9.0,
Gdk.PixbufFormat.Extensions and Gdk.PixbufFormat.MimeTypes (wrongly)
return a string rather than an array of strings which renders them

Several gdk_pixbuf_format_* functions are missing Gtk# hooks (at least
that I can find). My attempt to add a hook in my own code caused
problems. (let's hope this renders better than yesterday...)

Running this against both a jpeg and svg (created with
Gdk.PixbufLoader) returns false in both cases. It should report that
the svg is scalable. However, I'm new to C#/Mono so I may have not
done it right.

compilable code: www.geocities.com/foxxygirltamara/scalable.tar.gz
extract and compile with:
$ mcs -pkg:gtk-sharp-2.0 -pkg:gnome-vfs-sharp-2.0 scalable.cs

// code snippet
static extern bool gdk_pixbuf_format_is_scalable (IntPtr raw);
private static bool IsScalable (Gdk.PixbufFormat format)
        return gdk_pixbuf_format_is_scalable (format.Handle);