I need this image to, upon button press, rotate 90 degrees to the left, and upon a different button rotate 90 degrees to the right. here is my code. Any help would be greatly appreciated!!
var pinWheel = new SMF.UI.Image({
name :"Pin Wheel",
image : "assets://pin_wheel.png",
positionBackgroundImage : "CENTER",
top : "60%",
imageFillType: SMF.UI.ImageFillType.ASPECTFIT
});
SMF.Bitmaphas static functions for image processing.rotatefunction will help you about your question.Here is a sample code for you: