Sub Activity_Create(FirstTime As Boolean)
Dim NewImage As Bitmap = RotateImage(LoadBitmap(File.DirAssets, "MVC-748F.jpg"), 180)
Dim iv As ImageView
iv.Initialize("")
Activity.AddView(iv, 0, 0, NewImage.Width, NewImage.Height)
iv.SetBackgroundImage(NewImage)
iv.Gravity = Gravity.FILL
End Sub
Sub RotateImage(original As Bitmap, degree As Float) As Bitmap
Dim matrix As JavaObject
matrix.InitializeNewInstance("android.graphics.Matrix", Null)
matrix.RunMethod("postRotate", Array(degree))
Dim bmp As JavaObject
bmp.InitializeStatic("android.graphics.Bitmap")
Dim NewImage As Bitmap = bmp.RunMethod("createBitmap", Array(original, 0, 0, original.Width, original.Height, _
matrix, True))
Return NewImage
End Sub