#include <goffice/goffice.h>
#include <gsf/gsf-libxml.h>
#include <cairo.h>
Go to the source code of this file.
#define GO_IMAGE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_IMAGE, GOImage)) |
Referenced by cb_surface_destroyed(), go_image_finalize(), go_image_get_property(), and go_image_set_property().
#define GO_IS_IMAGE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_IMAGE)) |
Referenced by go_image_create_cairo_pattern(), go_image_get_name(), go_image_same_pixbuf(), go_image_save(), GSF_CLASS(), and pixbuf_to_cairo().
#define GO_TYPE_IMAGE (go_image_get_type ()) |
Referenced by go_image_new_from_file().
enum GOImageFormat |
cairo_pattern_t* go_image_create_cairo_pattern | ( | GOImage * | image | ) |
go_image_create_cairo_pattern:
a GOImage.
returns: a cairo_pattern usable for cairo_set_source.
Note: this function has lifespan issues. The resulting pattern in only valid until (a) a pixbuf is set for the, or (b) a pixbuf is _read_ from the image. In either of these cases, the pattern must have been destroyed beforehand. In particular, if the pattern has been attached to a surface, that surface must either be finished itself, or have had a new pattern attached. See #632439.
References cb_surface_destroyed(), _GOImage::data, GO_IS_IMAGE, _GOImage::height, _GOImage::pixbuf, pixbuf_to_cairo(), _GOImage::rowstride, _GOImage::target_cairo, and _GOImage::width.
char* go_image_format_to_mime | ( | char const * | format | ) |
go_image_format_to_mime: : a file extension string
returns: corresponding mime type.
cairo_t* go_image_get_cairo | ( | GOImage * | image | ) |
GOImageFormat go_image_get_format_from_name | ( | char const * | name | ) |
GOImageFormatInfo const* go_image_get_format_info | ( | GOImageFormat | format | ) |
go_image_get_format_info: : a GOImageFormat
Retrieves infromation associated to .
returns: a GOImageFormatInfo struct.
GSList* go_image_get_formats_with_pixbuf_saver | ( | void | ) |
go_image_get_formats_with_pixbuf_saver:
returns: a list of GOImageFormat that can be created from a pixbuf.
char const* go_image_get_name | ( | GOImage * | image | ) |
References GO_IS_IMAGE, and _GOImage::name.
guint8* go_image_get_pixels | ( | GOImage * | image | ) |
int go_image_get_rowstride | ( | GOImage * | image | ) |
GType go_image_get_type | ( | void | ) |
void go_image_load_attrs | ( | GOImage * | image, | |
GsfXMLIn * | xin, | |||
xmlChar const ** | attrs | |||
) |
void go_image_load_data | ( | GOImage * | image, | |
GsfXMLIn * | xin | |||
) |
References _GOImage::data, and _GOImage::target_cairo.
GOImage* go_image_new_from_file | ( | const char * | filename, | |
GError ** | error | |||
) |
References GO_IS_IMAGE, _GOImage::pixbuf, and size.
void go_image_save | ( | GOImage * | image, | |
GsfXMLOut * | output | |||
) |
References go_image_get_pixels(), GO_IS_IMAGE, _GOImage::height, _GOImage::name, _GOImage::rowstride, and _GOImage::width.
void go_image_set_name | ( | GOImage * | image, | |
char const * | name | |||
) |
References _GOImage::name.
char* go_mime_to_image_format | ( | char const * | mime_type | ) |
go_mime_to_image_format: : a mime type string
returns: file extension for the given mime type.