nanosvg icon indicating copy to clipboard operation
nanosvg copied to clipboard

Question/tutorial

Open alecive opened this issue 8 years ago • 1 comments

Hello Mikko, @alecive again. I am really excited about this library, but I am struggling with trying to understand what it can and it cannot do (and how to eventually extend it).

So, beginning with the basics:

  • how can I rotate and translate a NSVGshape ? Can I use something like nsvg__parseRotate and nsvg__parseTranslate ? If so, how can I use them?
  • If I have two NSVGimages, what would be the best way to combine them in one single NSVGimage with the NSVGshapes from both?

Thank you!

alecive avatar Feb 05 '16 00:02 alecive

  1. It will be good to implement shape->xform to apply during rasterising. It requires many redesigning.
  2. For example shape1->next = p->image->shapes; p->image->shapes = shape1; shape2->next = p->image->shapes; p->image->shapes = shape2;

SergeySlice avatar Jul 19 '18 09:07 SergeySlice