Re: [gtkmm] ImageLoader



On Wed, 2002-12-25 at 18:39, Mortella wrote:
> In FAQ i read "use Imageloader" to load images and get the Pixmap or/and
> the Bitmap. 
> 

If you have gtkmm2, the FAQ also says:

"With gtkmm2, you can forget about all this and use Gdk::Pixbuf and/or
Gtk::Image. Both are much easier to use and support a wide range of
image file types via pixbuf loader plugins."

> Compiler says:
> `ImageLoader' undeclared in namespace `Gtk'
> 
> I greped te whole gtkmm package but no ImageLoader found except FAQ. 
> 
> Now what. I simply would like to read an image from an xpm in to a
> Pixmap , mask to a Bitmap. 
> 

Take a look at Gdk::Pixmap::create_from_xpm() family of methods.

Good luck!

---
Claude Vaillancourt




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