[BZ#749782] render at specified size, other than from file on disk
Submitted by delt
Link to original bug (#749782)
Description
I'm developing an app that uses librsvg. Currently, i have to "borrow" a small/moderate "private" portion of the code, and implement myself the (imho missing) functions:
GdkPixbuf *rsvg_pixbuf_from_data_at_size (const guchar *buff, size_t len, int width, int height, const char *base_Uri, GError **error);
GdkPixbuf *rsvg_pixbuf_from_data_at_zoom (const guchar *buff, size_t len, double x_zoom, double y_zoom, const char *base_Uri, GError **error);
These a very simple functions that are mostly just using already existing (but marked "private") code. I would very much like to see these functions in a future release of librsvg, as well as a very much needed:
rsvg_handle_render_cairo_at_size () function.
This way, i will be able to rely on librsvg without linking a static, modified copy into my application.
Thanks very much,
- delt. (Montréal, Canada)