svg-net / SVG

Fork of the ms svg library
http://svg-net.github.io/SVG/
Microsoft Public License
1.17k stars 475 forks source link

feBlend (Element only, no processing) #496

Open jonstelly opened 5 years ago

jonstelly commented 5 years ago

I've added an feBlend element but I haven't implemented the Process method. Primarily because there are tons of blend modes but also because I don't need them (I don't use the library for rendering images, only for generating SVG documents)

I can open a pull request for this if it's helpful but it seems like poor form to add an element that doesn't work for visual rendering. But if nothing else I figured I'd mention this here so others can either take this as a starting point if they're interested in implementing Process() or they could copy the classes and enum to their own projects if they have similar needs (SVG generation without rendering)

P.S. feBlend requires a new type of enum converter to give dashed-lower-case names, so had to add to the enum converter.

mrbean-bremen commented 5 years ago

I actually have a rudimentary implementation of feBlend in a branch. I had closed the respective PR as I'm not working on this at the moment, but I can add a new one and you can review it. I did not make a special converter, so this may be something that is missing.

mrbean-bremen commented 5 years ago

See #497.