NGraphics is a cross platform library for rendering vector graphics on .NET. It provides a unified API for both immediate and retained mode graphics using high quality native renderers.
I have an SVG which includes gradients and gradientTransformis not being applied. I attempted different types of transforms (instead of the matrix, as in the example below) and was unable to see any transform results. I'm testing by using the SampleApps project included with the source code to display my svg.
Here's an example of a linear gradient with the gradientTransform:
I have found, if you use percentage based values in the SVG for x1, y1, x2, and y2, then the gradients DO display correctly on Android (haven't tried iOS yet).
For example:
I have an SVG which includes gradients and
gradientTransform
is not being applied. I attempted different types of transforms (instead of the matrix, as in the example below) and was unable to see any transform results. I'm testing by using the SampleApps project included with the source code to display my svg.Here's an example of a linear gradient with the gradientTransform:
Not specifically transform bug related, it took a bit of trial and error to get my gradients working at all. If you look at the ErulisseuiinSpaceshipPack images output by the tests, you can see that the gradients aren't being displayed correctly on android and iOS. ( https://github.com/praeclarum/NGraphics/blob/master/TestResults/ErulisseuiinSpaceshipPack.svg-Android.png )
I have found, if you use percentage based values in the SVG for x1, y1, x2, and y2, then the gradients DO display correctly on Android (haven't tried iOS yet). For example:
The other thing I found is that the package doesn't seem to like the style tag on the gradient stops.
Maybe that info can save someone else some time.