VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging Namespace / VintasoftImage Class / Rotate Method
Angle, in degrees, at which image should be rotated.
Example



In This Topic
    Rotate Method (VintasoftImage)
    In This Topic
    Rotates this image at the specified angle.
    Syntax
    'Declaration
     
    Public Sub Rotate( _
       ByVal angle As Single _
    ) 
    public void Rotate( 
       float angle
    )
    public: void Rotate( 
       float angle
    ) 
    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 Vintasoft.Imaging.ImageProcessing.Transforms.RotateCommand if you need to rotate image asynchronously with progress indicator.
    Example
    This example 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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also