Actually, it isn't easy since neither of the controls you mention support rotation. Here's an example of one workaround (this just illustrates the technique for a Picture Box, but it works for the Image control as well with some minor alteration):
Add the Wang (or Kodak) Image Edit component to your project, and drop an ImgEdit control onto your form. Set its visible property to false.
Place a picture box and a command button onto the form. Set the Picture property of the picture box to the image you want (do this at design time or at run time, it doesn't matter). Also, set the AutoSize property to True
Add the following code to your form:
[tt]
Option Explicit
Private Function Rotate(ctlPicture As PictureBox) As StdPicture
Dim picX As Long
Dim picY As Long
Dim OldBorderStyle As Long
' Remove any birders if they exist
OldBorderStyle = ctlPicture.BorderStyle
ctlPicture.BorderStyle = 0
picX = ctlPicture.Image.Width
picY = ctlPicture.Image.Height
Clipboard.Clear
Clipboard.SetData ctlPicture.Picture
ImgEdit1.FitTo 3, True
'ImgEdit1.Zoom = 20
ImgEdit1.DisplayBlankImage ctlPicture.Width / Screen.TwipsPerPixelX, ctlPicture.Height / Screen.TwipsPerPixelY, , , 6
ImgEdit1.ClipboardPaste
ImgEdit1.CompletePaste
ImgEdit1.RotateLeft
Clipboard.Clear
ImgEdit1.ClipboardCopy 0, 0, picX, picY
ctlPicture.Picture = Clipboard.GetData
ctlPicture.BorderStyle = OldBorderStyle
End Function
Private Sub Command1_Click()
Rotate Picture1
End Sub