#include <glib-object.h>
#include <goffice/utils/goffice-utils.h>
Go to the source code of this file.
#define GO_IMAGE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_IMAGE_TYPE, GOImage)) |
#define GO_IMAGE_TYPE (go_image_get_type ()) |
#define IS_GO_IMAGE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_IMAGE_TYPE)) |
Referenced by GSF_CLASS().
enum GOImageFormat |
char* go_image_format_to_mime | ( | char const * | format | ) |
go_image_format_to_mime: : a file extension string
returns: corresponding mime type.
References gchar.
GOImageFormat go_image_get_format_from_name | ( | char const * | name | ) |
References GOImageFormatInfo::format, go_image_build_pixbuf_format_infos(), and pixbuf_format_nbr.
GOImageFormatInfo const* go_image_get_format_info | ( | GOImageFormat | format | ) |
go_image_get_format_info: : a GOImageFormat
Retrieves infromation associated to .
returns: a GOImageFormatInfo struct.
References go_image_build_pixbuf_format_infos(), GO_IMAGE_FORMAT_UNKNOWN, and pixbuf_format_nbr.
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.
References go_image_build_pixbuf_format_infos(), pixbuf_format_nbr, and PIXBUF_IMAGE_FORMAT_OFFSET.
guint8* go_image_get_pixels | ( | GOImage * | image | ) |
References _GOImage::data.
Referenced by go_image_save().
int go_image_get_rowstride | ( | GOImage * | image | ) |
References _GOImage::rowstride.
GType go_image_get_type | ( | void | ) |
GOImage* go_image_new_from_file | ( | const char * | filename, | |
GError ** | error | |||
) |
References GO_TYPE_IMAGE, and _GOImage::target_cairo.
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.
References go_image_build_pixbuf_format_infos(), and pixbuf_mimes.