[java-gnome-hackers] Rendering SVGs
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2010-12-13 10:29:54
|
I merged my 'rsvg' branch to 'mainline', exposing preliminary coverage of the librsvg SVG loader. Allows you to draw an SVG image to Cairo. Neato - and more to the point, better than loading with gdk-pixbuf which rasterizes the graphic first. I've had this one kicking around for ages, but hopefully it'll pass muster now. If anyone can think of a better way to test it, I'd welcome comments; see org.gnome.rsvg.ValidateVectorIllustrations's testHandleRendering() Also, it doesn't seem like the call to Rsvg.init() is actually necessary; I included it because the library documentation says it should be there. Hm. There's an example, see cairo.ExampleDrawingPenguins though it doesn't do anything that special. You could fix that, heh. AfC Sydney -- Andrew Frederick Cowie Operational Dynamics is an operations and engineering consultancy focusing on IT strategy, organizational architecture, systems review, and effective procedures for change management: enabling successful deployment of mission critical information technology in enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |