Hello,

I'd just like to create a static BufferedImage from a SVG document, with
some ability to specify image size and zoom factor, much like this API
from librsvg from the GNOME 2.2 platform,

/**
 * rsvg_pixbuf_from_file_at_zoom_with_max:
 * @file_name: A file name
 * @x_zoom: The horizontal zoom factor
 * @y_zoom: The vertical zoom factor
 * @max_width: The requested max width
 * @max_height: The requested max height
 * @error: return location for errors
 *
 * Loads a new #GdkPixbuf from @file_name and returns it.  This pixbuf is scaled
 * from the size indicated by the file by a factor of @x_zoom and @y_zoom. If the
 * resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled
 * down to fit in that rectangle.\302\240The caller must assume the reference to the
 * returned pixbuf. If an error occurred, @error is set and %NULL is returned.
 *
 * Return value: A newly allocated #GdkPixbuf, or %NULL
 **/

GdkPixbuf*
rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *file_name,
                                        double x_zoom,
                                        double y_zoom,
                                        gint max_width,
                                        gint max_height,
                                        GError **error);


I tried to pull what I need from the swing components (JSVGCanvas and
superclasses) and from the transcoder package, but I can't follow all of
what's going on under the hood.  Is there something that I'm missing?

   michael



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to