How to rotate an image?

Hi All,

Do you guys know how to rotate an image that I have just created. For example i want the image to rotate around 54 degrees.

Below is the code that I am working on but it seems i cant find a predefined function for rotate.

this.background = new Sprite();

this.background.bitmap = ImageManager.loadSystem($.Param.background);

this.background.x = 50;

this.background.y = 400;

this.background.bitmap.rotateHue(45);

//this.background.bitmap.rotate(45);
Quite simple:

Code:
this.background.angle = 90; // rotates the image 90 degrees...
try use rotation
Quite simple:

this.background.angle = 90; // rotates the image 90 degrees...
I tried it but it didnt rotate at all.

try use rotation
I tried to apply the rotation function but still didnt rotate.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-rotate-an-image.53438/