Rotate Image for Slider Rotary Slider

gui

#1

Hi, I am trying to implement the rotation of an image that I import from a png file as part of a LookandFeel class for rotary sliders. I’ve been looking into the AffineTransform class but can’t find anything about how I might apply it to a rendered image.

How can I rotate an imported image programmatically?


#2

Check out Graphics::drawImageTransformed