Sign in to follow this  

[Cairo] 'Grouping' draw instructions

Recommended Posts

I'm playing around with Cairo lately and want to do the following: Loading a number of SVG files and place these onto the screen at a certain offset. It must be possible to scale everything up or down. So, I build the loading script and I put each SVG vector image onto a new surface, then using composition I can draw these onto the main surface and load / draw this with OpenGL. However, when scaling the main surface, the SVG surfaces get unsharp! So apparently it somehow rasterizes it? I prefer to keep it vectorized when loaded from an SVG file, so I must somehow put the draw instructions of an SVG file into an object, and draw this object at some position and scale on the main surface. What is the way in Cairo to "record" the draw instructions done by librsvg, so I can draw it at any scale / position later on, to the main surface? Thanks! PS: the alternative is loading the SVG files every time I want to scale things up, I rather circumvent this...

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this