/** * ev_document_misc_render_thumbnail_surface_with_frame: * @widget: a #GtkWidget to use for style information * @source_surface: a #cairo_surface_t * @width: the desired width * @height: the desired height * * Returns: (transfer full): a #cairo_surface_t * * Since: 3.14 */ cairo_surface_t * ev_document_misc_render_thumbnail_surface_with_frame (GtkWidget *widget, cairo_surface_t *source_surface, int width, int height) { return ev_document_misc_render_thumbnail_frame (widget, width, height, FALSE, NULL, source_surface); }
/** * ev_document_misc_render_loading_thumbnail_surface: * @widget: a #GtkWidget to use for style information * @width: the desired width * @height: the desired height * @inverted_colors: whether to invert colors * * Returns: (transfer full): a #cairo_surface_t * * Since: 3.14 */ cairo_surface_t * ev_document_misc_render_loading_thumbnail_surface (GtkWidget *widget, int width, int height, gboolean inverted_colors) { return ev_document_misc_render_thumbnail_frame (widget, width, height, inverted_colors, NULL, NULL); }
/** * ev_document_misc_render_thumbnail_with_frame: * @widget: a #GtkWidget to use for style information * @source_pixbuf: a #GdkPixbuf * * Returns: (transfer full): a #GdkPixbuf * * Since: 3.8 */ GdkPixbuf * ev_document_misc_render_thumbnail_with_frame (GtkWidget *widget, GdkPixbuf *source_pixbuf) { GdkPixbuf *retval; cairo_surface_t *surface; surface = ev_document_misc_render_thumbnail_frame (widget, -1, -1, FALSE, source_pixbuf, NULL); retval = gdk_pixbuf_get_from_surface (surface, 0, 0, cairo_image_surface_get_width (surface), cairo_image_surface_get_height (surface)); cairo_surface_destroy (surface); return retval; }
/** * ev_document_misc_render_loading_thumbnail: * @widget: a #GtkWidget to use for style information * @width: the desired width * @height: the desired height * @inverted_colors: whether to invert colors * * Returns: (transfer full): a #GdkPixbuf * * Since: 3.8 */ GdkPixbuf * ev_document_misc_render_loading_thumbnail (GtkWidget *widget, int width, int height, gboolean inverted_colors) { GdkPixbuf *retval; cairo_surface_t *surface; surface = ev_document_misc_render_thumbnail_frame (widget, width, height, inverted_colors, NULL, NULL); retval = gdk_pixbuf_get_from_surface (surface, 0, 0, width, height); cairo_surface_destroy (surface); return retval; }
GdkPixbuf * ev_document_misc_render_thumbnail_with_frame (GtkWidget *widget, GdkPixbuf *source_pixbuf) { return ev_document_misc_render_thumbnail_frame (widget, -1, -1, FALSE, source_pixbuf); }