Re: [gtkmm] How to obtain the image formats for Gtk::Image



"Secil Ayaz" <secil secil de> writes:

>  how can i learn, which image formats are supported by a GTKmm (GTK+)
> installation??

The image library is gdk-pixbuf. So you need to look at what
gdk-pixbuf provides. I have a program called gdk-pixbuf-query-loaders.
Try running that. On my system, I get something like:

  ole:~/cvs$ gdk-pixbuf-query-loaders | grep image/
  "image/png" ""
  "image/jpeg" ""
  "image/gif" ""
  "image/x-icon" ""
  "image/x-cmu-raster" "image/x-sun-raster" ""
  "image/x-xpixmap" ""
  "image/tiff" ""
  "image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" ""
  "image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
  "image/vnd.wap.wbmp" ""
  "image/x-xbitmap" ""
  "image/x-tga" ""
  "image/svg" "image/svg+xml" ""

I think 'image/svg' is from librsvg - the rest are, AFAIK, from plain
gdk-pixbuf. The loaders can be installed and deinstalled dynamically.

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/



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