Public Member Functions |
virtual | ~PixbufLoader () |
GdkPixbufLoader* | gobj () |
| Provides access to the underlying C GObject.
|
const GdkPixbufLoader* | gobj () const |
| Provides access to the underlying C GObject.
|
GdkPixbufLoader* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
void | set_size (int width, int height) |
void | write (const guint8* buf, gsize count) |
| Causes the pixbuf loader to parse the next count bytes of an image.
|
void | close () |
| Informs a pixbuf loader that no further writes with PixbufLoader::write() will occur, so that it can free its internal loading structures.
|
Glib::RefPtr< Gdk::Pixbuf > | get_pixbuf () |
Glib::RefPtr
< Gdk::PixbufAnimation > | get_animation () |
PixbufFormat | get_format () const |
Glib::SignalProxy0< void > | signal_area_prepared () |
| This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size.
|
Glib::SignalProxy4< void, int,
int, int, int > | signal_area_updated () |
| This signal is emitted when a significant area of the image being loaded has been updated.
|
Glib::SignalProxy0< void > | signal_closed () |
| This signal is emitted when close() is called.
|
Glib::SignalProxy2< void, int,
int > | signal_size_prepared () |
| This signal is emitted when the pixbuf loader has been fed the initial amount of data that is required to figure out the size of the image that it will create.
|
Static Public Member Functions |
static Glib::RefPtr< PixbufLoader > | create () |
| Creates a new pixbuf loader object.
|
static Glib::RefPtr< PixbufLoader > | create (const Glib::ustring& image_type, bool mime_type=false) |
| Constructs a pixbuf loader object for a specific image type.
|
Protected Member Functions |
| PixbufLoader () |
| Constructs a pixbuf loader object.
|
| PixbufLoader (const Glib::ustring& image_type, bool mime_type=false) |
| Constructs a pixbuf loader object for a specific image type.
|
virtual void | on_area_prepared () |
virtual void | on_area_updated (int x, int y, int width, int height) |
virtual void | on_closed () |
virtual void | on_size_prepared (int width, int height) |
Related Functions |
(Note that these are not member functions.)
|
Glib::RefPtr< Gdk::PixbufLoader > | wrap (GdkPixbufLoader* object, bool take_copy=false) |
| A Glib::wrap() method for this object.
|
Gdk::PixbufLoader::PixbufLoader |
( |
const Glib::ustring & |
image_type, |
|
|
bool |
mime_type = false |
|
) |
| [explicit, protected] |
Constructs a pixbuf loader object for a specific image type.
Constructs a new pixbuf loader object that always attempts to parse image data as if it were an image of type image_type, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.
The image_type can be one of the types returned by Gdk::Pixbuf::get_formats(), or a MIME type.
Common MIME Types are listed here http://www.iana.org/assignments/media-types/ and here: http://www.freedesktop.org/Software/shared-mime-info
The list of non-mime-type image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call PixbufFormat::get_name() on each of the PixbufFormats returned by Gdk::Pixbuf::get_formats().
- Parameters:
-
image_type | Name of the image format to be loaded with the image. |
mime_type | If this is true then the image_type is a MIME type. |
- Exceptions:
-
Constructs a pixbuf loader object for a specific image type.
Constructs a new pixbuf loader object that always attempts to parse image data as if it were an image of type image_type, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.
The image_type can be one of the types returned by Gdk::Pixbuf::get_formats(), or a MIME type.
Common MIME Types are listed here http://www.iana.org/assignments/media-types/ and here: http://www.freedesktop.org/Software/shared-mime-info
The list of non-mime-type image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call PixbufFormat::get_name() on each of the PixbufFormats returned by Gdk::Pixbuf::get_formats().
- Parameters:
-
image_type | Name of the image format to be loaded with the image. |
mime_type | If this is true then the image_type is a MIME type. |
- Exceptions:
-