VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging Namespace / VintasoftImage Class / Flip Method
A type of flipping.
Example



In This Topic
    Flip Method (VintasoftImage)
    In This Topic
    Flips this image.
    Syntax
    'Declaration
     
    Public Sub Flip( _
       ByVal rotateFlipType As ImageRotateFlipType _
    ) 
    public void Flip( 
       ImageRotateFlipType rotateFlipType
    )
    public: void Flip( 
       ImageRotateFlipType rotateFlipType
    ) 
    public:
    void Flip( 
       ImageRotateFlipType rotateFlipType
    ) 

    Parameters

    rotateFlipType
    A type of flipping.
    Remarks
    This method works synchronously, use the Vintasoft.Imaging.ImageProcessing.Transforms.FlipCommand if you need to flip image asynchronously with progress indicator.
    Example
    This example shows how to load image from disk, flip it and save to file.
    ' load image from file
    Using image As New Vintasoft.Imaging.VintasoftImage("c:\original-image.tif")
        ' flip image
        image.Flip(Vintasoft.Imaging.ImageProcessing.Transforms.ImageRotateFlipType.Rotate90FlipX)
        ' 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"))
    {
        // flip image
        image.Flip(Vintasoft.Imaging.ImageProcessing.Transforms.ImageRotateFlipType.Rotate90FlipX);
        // 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