The only application I know about this can take svg (by the way) and spit out the source of the main graphics (among other things) - it's opacity on the Mac. The good news is that it does a great job. The bad news is that a) it is not Inkscape, b) it is commercial, c) updates are stalled
There is a completely fictional demo, and the price of the app is reasonable for what you get. It makes Coccoa or iOS code, as well as other rasterizatins, etc.
source share