Sub rotate_click
Dim rbmp As RSImageProcessing
Dim bmp as Bitmap
bd.Initialize(directory, Imagefilename) 'load and initalise the bitmap
If bmp.width>bmp.height Then 'Image is landscape, rotate
bmp = rbmp.Rotate(bmp, -90)
'Re-size the imageview to bitmap if required
image_view.width=bmp.width
image_view.height=bmp.height
image_view.Bitmap=bmp 'Put bitmap into imageview
End If
End Sub