Using g.addTransform to rotate some text.
firstTransform = juce::AffineTransform().rotated(juce::degreesToRadians(3.f), backgroundTextImagebounds.getCentreX(), backgroundTextImagebounds.getCentreY());
secondTransform = juce::AffineTransform().rotated(juce::degreesToRadians(-3.f), backgroundTextImagebounds.getCentreX(), backgroundTextImagebounds.getCentreY());
Then is the paint() method I do the following(twice)…
g.saveState();
g.addTransform(firstTransform);
g.drawText(“sample text”);
g.restoreState();
And this is causing so much lag and I can’t see why. At first I thought maybe my code is broken and running the paint() method too much, but it really isn’t. I’m really confused. Any help?
