LIBRSVG: C library for rendering SVG

LIBRSVG 2.62.3 C library for rendering SVG

Loading...
Searching...
No Matches
rsvg-pixbuf.h
Go to the documentation of this file.
1/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/* vim: set sw=4 sts=4 expandtab: */
3/*
4 rsvg-pixbuf.h: GdkPixbuf rendering for SVG files
5
6 Copyright (C) 2000 Eazel, Inc.
7 Copyright (C) 2026 Randy Butler
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13*/
14
15#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
16#warning "Including <librsvg/rsvg-pixbuf.h> directly is deprecated."
17#endif
18
19#ifndef RSVG_PIXBUF_H
20#define RSVG_PIXBUF_H
21
22#include <gdk-pixbuf/gdk-pixbuf.h>
23
24G_BEGIN_DECLS
25
41RSVG_DEPRECATED_FOR(rsvg_handle_get_pixbuf_and_error)
42GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
43
56RSVG_API
57GdkPixbuf *rsvg_handle_get_pixbuf_and_error (RsvgHandle *handle, GError **error);
58
70RSVG_API
71GdkPixbuf *rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char *id);
72
83RSVG_DEPRECATED
84GdkPixbuf *rsvg_pixbuf_from_file (const gchar *filename, GError **error);
85
91RSVG_DEPRECATED
92GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *filename,
93 double x_zoom,
94 double y_zoom,
95 GError **error);
96
102RSVG_DEPRECATED
103GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *filename,
104 gint width,
105 gint height,
106 GError **error);
107
113RSVG_DEPRECATED
114GdkPixbuf *rsvg_pixbuf_from_file_at_max_size (const gchar *filename,
115 gint max_width,
116 gint max_height,
117 GError **error);
118
124RSVG_DEPRECATED
125GdkPixbuf *rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *filename,
126 double x_zoom,
127 double y_zoom,
128 gint max_width,
129 gint max_height,
130 GError **error);
131
134G_END_DECLS
135
136#endif
rsvg_handle_get_pixbuf_sub
GdkPixbuf * rsvg_handle_get_pixbuf_sub(RsvgHandle *handle, const char *id)
rsvg_handle_get_pixbuf_sub: @handle: an #RsvgHandle @id: (nullable): element id starting with #,...
rsvg_pixbuf_from_file_at_zoom_with_max
GdkPixbuf * rsvg_pixbuf_from_file_at_zoom_with_max(const gchar *filename, double x_zoom, double y_zoom, gint max_width, gint max_height, GError **error)
rsvg_pixbuf_from_file_at_zoom_with_max:
rsvg_pixbuf_from_file_at_size
GdkPixbuf * rsvg_pixbuf_from_file_at_size(const gchar *filename, gint width, gint height, GError **error)
rsvg_pixbuf_from_file_at_size:
rsvg_pixbuf_from_file_at_zoom
GdkPixbuf * rsvg_pixbuf_from_file_at_zoom(const gchar *filename, double x_zoom, double y_zoom, GError **error)
rsvg_pixbuf_from_file_at_zoom:
rsvg_pixbuf_from_file
GdkPixbuf * rsvg_pixbuf_from_file(const gchar *filename, GError **error)
rsvg_pixbuf_from_file: @filename: a file name @error: return location for a #GError
rsvg_handle_get_pixbuf
GdkPixbuf * rsvg_handle_get_pixbuf(RsvgHandle *handle)
rsvg_handle_get_pixbuf: @handle: an #RsvgHandle
rsvg_pixbuf_from_file_at_max_size
GdkPixbuf * rsvg_pixbuf_from_file_at_max_size(const gchar *filename, gint max_width, gint max_height, GError **error)
rsvg_pixbuf_from_file_at_max_size:
rsvg_handle_get_pixbuf_and_error
GdkPixbuf * rsvg_handle_get_pixbuf_and_error(RsvgHandle *handle, GError **error)
Render the SVG to a #GdkPixbuf.