TImage32.Rotate

procedure Rotate(angleRads: double);


Image is rotated by the specified angle (in the direction indicated by the global variable ClockwiseRotationIsAnglePositive).

The resulting image size will be increased sufficiently to accommodate the rotated image.

uses Img32, Img32.Fmt.PNG;
...
img := TImage32.Create;
img.LoadFromFile('fruit.png');
img.Rotate(-angle45);
img.SaveToFile('fruit_rot45.png');
img.Free;
    

See Also

Img32