I am a newbie to JUCE and to programming in general. I am having an issue where the image on my slider appears to rotate slightly off center. It almost appears if the getwidth() and getheight() functions are not giving me the correct height and width. Here is the code that I am using to rotate the .svg around the slider.
gainSkin->draw(g, 1.0f, rotator.rotated((float)sliderPosProportional * rotaryEndAngle, (float)(gainSkin->getWidth() / 2), (float)(gainSkin->getHeight() / 2)));
If someone could lead me to an example of this implementation that would be great! Thanks in advance!