Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
librsvg/rsvg.h
✓ #include <librsvg/rsvg.h>
Render an SVG file to a Cairo surface
#include <librsvg/rsvg.h>
#include <cairo.h>
int main() {
RsvgHandle *handle = rsvg_handle_new_from_file("image.svg", NULL);
cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 100, 100);
cairo_t *cr = cairo_create(surface);
rsvg_handle_render_cairo(handle, cr);
cairo_destroy(cr);
cairo_surface_destroy(surface);
g_object_unref(handle);
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.