Hello,
How can I change the attribute viewbox in svg image? In Java there is a method setTrait("viewBox","0,0,200,200"); Is something similar in C++?
Thank you.
Hello,
How can I change the attribute viewbox in svg image? In Java there is a method setTrait("viewBox","0,0,200,200"); Is something similar in C++?
Thank you.
You can not really access the source of .svg-s in Symbian C++, not even for reading.
What do you want to achieve?
I have such a background that is svgt with gradients and opacity. It has also rounded corners. The problem is that simple scaling of such image also scales corners - and I need to preserve the ratio of the corners. See the attachment.
I can have several parts cut apart so that I can scale the rounded corners separately preserving the size ratio between height and width. Or I was thinking to move the viewbox over the image itself to choose only the part I want to scale. It's only idea but I have to somehow target the problem described in the attachment.
Thank you Wizard for your interest.
According to an older thread CImageDecoder may support .svg-s.
On this page there is a table with supported formats - svg(t) is not among them. There is a plug-in in SVGEngine.dll, but there is no public api afaik .
I think I will have to stick with separated parts. After first load of the application I will render the vector graphics with AknIconUtils::CreateIconL into CFbsBitmaps, set sizes for the each component, compose the box and store it with CFbsBitmap::StoreL to avoid repeated rendering during each application's start.
I do not care about that table. Search for svg cimagedecoder, there will not be many hits. The table is part of the Symbian documentation, and I am not sure if SVG support comes from Symbian or not.