Help for Using SVG-To-Path-Generated paths for UI Controls

Hello:
I am trying to use the SVG to path converter in the Projucer to create the shapes of my controls (currently a knob). However, all of the coordinates that are generated are absolute, which is not very helpful when making graphics controls for an interface. Is there a way for me to make these coordinates relative to the control so that they are visible regardless of the control’s placement?

Thanks in advance for any help

I usually do something like:

        auto rc = getLocalBounds().toFloat();
        g.fillPath (path, path.getTransformToScaleToFit (rc, true));

1 Like

Thanks for the quick reply. That solved my issue.