Re: [gtkmm] (no subject)

Paulo Pinto <pjmlp progtools org> writes:

> If I'm not mistaken you can read SVG images but I'm not aware of
> capabilities to read other vector formats. Someone correct me if
> I'm wrong.

GTK+ installs binary loaders, e.g.:

  ole:~$ ls /usr/lib/gtk-2.0/2.4.0/loaders

You can ask what MIME types they support with
'gdk-pixbuf-query-loaders'. So if you want another format, I think you
have two options: either write a back-end loader for GTK+ (which
anyone can then use) or write a custom one which simply converts the
vector format into the Gdk::Pixbuf format (four bytes pr. pixel,

Or you could always use the 'convert' program from ImageMagick to
convert the image (perhaps ImageMagick even provides an in-program
representation you can use).

Ole Laursen

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