开发者

What image types are supported with gtkmm's Gdk::Pixbuf::create_from_file()?

What image types are supported with gtkmm's G开发者_开发知识库dk::Pixbuf::create_from_file()? Is it system-dependant?


vector<Gdk::PixbufFormat> list = Gdk::Pixbuf::get_formats();
vector<Gdk::PixbufFormat>::const_iterator it;

for (it = list.begin(); it!=list.end(); it++)
{
    cout << it->get_name();
    cout << " - ";
    cout<< it->get_description();
    cout << endl;
}

That one above lists all formats available for Pixbufs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜