RotateRight Example VB

This example shows several ways to orient an image, and then redisplay it.

Private Sub cmdRotate_Click()

    ImgEdit1.Rotate True 'rotate all pages
    ImgEdit1.Rotate False 'rotate current page
    
    'Autorefresh must be set to true or must call
    'Refresh after these methods.
    ImgEdit1.AutoRefresh = True
    ImgEdit1.RotateLeft 'defaults to 90 degrees
    ImgEdit1.RotateRight 45 'optionally can specify degrees
    ImgEdit1.Flip '180 degrees
    'You must save the image to maintain orientation.
End Sub