NAME
App::MathImage::Gtk2::Ex::PixbufBits -- misc Gtk2::Gdk::Pixbuf helpers
SYNOPSIS
use App::MathImage::Gtk2::Ex::PixbufBits;
FUNCTIONS
$format = App::MathImage::Gtk2::Ex::PixbufBits::filename_to_format ($filename)-
Return the
Gtk2::Gdk::PixbufFormatfor the given$filenamefrom its extension. For example foo.png is PNG format. If the filename is not recognised then returnundef.PixbufFormat is new in Gtk 2.2. Currently
filename_to_formatthrows an error in Gtk 2.0.x. Would returningundefbe better? Or some compatibility fakery? App::MathImage::Gtk2::Ex::PixbufBits::format_matches_filename ($format, $filename)-
$formatshould be aGtk2::Gdk::PixbufFormatobject. Return true if one of its extensions matches$filename. For example JPEG format matches foo.jpg or foo.jpeg.