AutoRefresh Example VB

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

Private Sub cmdRotate_Click()
   'This method displays a dialog box which allows
   'user to specify rotation by degrees.  Repaints
   'the screen automatically.  Rotate all writes the
   'file to disk.
   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