Top | ![]() |
![]() |
![]() |
![]() |
Functions
gboolean | go_image_differ () |
void | go_image_draw () |
GType | go_image_format_info_get_type () |
char * | go_image_format_to_mime () |
guint8 const * | go_image_get_data () |
void | go_image_get_default_dpi () |
GOImageFormat | go_image_get_format_from_name () |
GOImageFormatInfo const * | go_image_get_format_info () |
GSList * | go_image_get_formats_with_pixbuf_saver () |
double | go_image_get_height () |
char const * | go_image_get_name () |
GdkPixbuf * | go_image_get_pixbuf () |
GdkPixbuf * | go_image_get_scaled_pixbuf () |
GdkPixbuf const * | go_image_get_thumbnail () |
double | go_image_get_width () |
void | go_image_load_attrs () |
void | go_image_load_data () |
GOImage * | go_image_new_for_format () |
GOImage * | go_image_new_from_data () |
GOImage * | go_image_new_from_file () |
void | go_image_save () |
void | go_image_set_default_dpi () |
void | go_image_set_name () |
GType | go_image_type_for_format () |
char * | go_mime_to_image_format () |
Object Hierarchy
GBoxed ╰── GOImageFormatInfo GObject ╰── GOImage ├── GOEmf ├── GOPixbuf ├── GOSpectre ╰── GOSvg
Functions
go_image_get_format_info ()
GOImageFormatInfo const *
go_image_get_format_info (GOImageFormat format
);
Retrieves information associated to format
.
go_image_get_formats_with_pixbuf_saver ()
GSList *
go_image_get_formats_with_pixbuf_saver
(void
);
Returns
a list of GOImageFormat that can be created from a pixbuf.
[element-type GOImageFormat][transfer container]
go_image_get_pixbuf ()
GdkPixbuf *
go_image_get_pixbuf (GOImage *image
);
Builds a pixbuf from the image if not already done and returns it, adding a reference.
go_image_get_scaled_pixbuf ()
GdkPixbuf * go_image_get_scaled_pixbuf (GOImage *image
,int width
,int height
);
Builds a scaled pixbuf from the image and returns it. The caller needs to
unref it. The pixbuf is scaled so that its width and height are not larger
than, respectively, width
and height
, and preserving the aspect ratio.
go_image_get_thumbnail ()
GdkPixbuf const *
go_image_get_thumbnail (GOImage *image
);
Generates a thumbnail for image
if not already done and returns it, adding
a reference. The pixbuf is scaled so that its width and height are not larger
than 64 pixels, and preserving the aspect ratio.
go_image_load_attrs ()
void go_image_load_attrs (GOImage *image
,GsfXMLIn *xin
,xmlChar const **attrs
);
go_image_new_from_data ()
GOImage * go_image_new_from_data (char const *type
,guint8 const *data
,gsize length
,char **format
,GError **error
);
Types and Values
GOImageClass
typedef struct { GObjectClass parent_klass; GdkPixbuf *(*get_pixbuf) (GOImage *image); GdkPixbuf *(*get_scaled_pixbuf) (GOImage *image, int width, int height); void (*save) (GOImage *image, GsfXMLOut *output); void (*load_attr) (GOImage *image, xmlChar const *attr_name, xmlChar const *attr_value); void (*load_data) (GOImage *image, GsfXMLIn *xin); void (*draw) (GOImage *image, cairo_t *cr); gboolean (*differ) (GOImage *first, GOImage *second); } GOImageClass;
GOImageFormatInfo
typedef struct { GOImageFormat format; char *name; char *desc; char *ext; gboolean has_pixbuf_saver; gboolean is_dpi_useful; gboolean alpha_support; } GOImageFormatInfo;
Members
GOImageFormat |
||
image type name. |
||
image type description. |
||
file extension. |
||
can be saved as pixbuf. |
||
depends upon device resolution. |
||
supports transparency. |