RotateAll 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.RotateAll 900  'rotate all pages 90 degrees left
    ImgEdit1.Flip '180 degrees
    'You must save the image to maintain orientation.
End Sub