开发者

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

开发者 https://www.devze.com 2023-01-24 12:08 出处:网络
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();

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

精彩评论

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