I need to rotate (image, layer) in a circle axis (x), how to do it? I tried rotationaxis but I didn’t get something ... If you can give a link to the literature but this topic, thank you in advance! PS I googled but was probably looking for the wrong ...
- setRotationAxis () sets the axis or set of axes around which the element will be rotated in JavaFX. A three-dimensional point with parameters for the x, y and z axis, respectively, is passed to this method. Having set the rotation axis, you can already rotate the object through the setRotation () method. - DimXenon
- Thanks, I figured it out. I thought that rotationaxis is this function that rotates the object, I did not need to add setRotation, thanks! - AseTry
|
1 answer
To get started, write exactly how you store the image or layer, which class you are using. Probably you should look into the Graphics2D API, there is basically important information on the images in this direction.
- and more abstract, sample code, it's easier for me, then I'll catch up with where to start ... you can? just an example that demonstrates rotation (you can even without animation) - AseTry
- @AseTry good, I'll write in the evening. I 'm already running away ... - Ladence
|