VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging Namespace / VintasoftImage Class / Rotate(Single) Method
Syntax Remarks Example Requirements SeeAlso
In This Topic
Rotate(Single) Method (VintasoftImage)
In This Topic
Rotates this image at the specified angle.
Syntax
'Declaration

Public Sub Rotate( _
ByVal angle
Angle, in degrees, at which image should be rotated.
As Single _
)
public void Rotate(
float angle
)

Parameters

angle
Angle, in degrees, at which image should be rotated.
Remarks

Black color is used as a background color at rotation.

This method works synchronously, use the RotateCommand if you need to rotate image asynchronously with progress indicator.

Example

This C#/VB.NET code shows how to load image from disk, rotate it and save to file.


' load image from file
Using image As New Vintasoft.Imaging.VintasoftImage("c:\original-image.tif")
    ' rotate image
    image.Rotate(45)
    ' save processed image to file
    image.Save("c:\processed-image.tif")
End Using


// load image from file
using (Vintasoft.Imaging.VintasoftImage image =
    new Vintasoft.Imaging.VintasoftImage(@"c:\original-image.tif"))
{
    // rotate image
    image.Rotate(45);
    // save processed image to file
    image.Save(@"c:\processed-image.tif");
}

Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also