Dim iv As ImageView 'Create a new ImageView (if not by Designer)
iv.Initialize("") 'Initialize the View (if not by Designer)
iv.Bitmap = LoadBitmap(File.DirAssets, "Immagine.png") 'Load a Bitmap to Imageview (use your path and filename)
Dim bmp As Bitmap = iv.Bitmap 'Create a Bitmap and set it to the image loaded into Imageview
bmp = bmp.Resize((bmp.Width / 5), (bmp.Height / 5), True) 'Resize the bitmap to 1/5 of the initial size
Dim Out As OutputStream 'Create an output stream
Out = File.OpenOutput(rp.GetSafeDirDefaultExternal(""), "Test.png", False) 'Set path and filename for the new file
bmp.WriteToStream(Out, 100, "PNG") 'Write the new file with resized bitmap
Out.Close 'Close the stream job
iv.SetLayout(0, 0, bmp.Width, bmp.Height) 'Set the Imageview to the resized bitmap size
iv.Bitmap = LoadBitmap(rp.GetSafeDirDefaultExternal(""), "Test.png") 'Load the new resized bitmap from storage (use your path and filename)
iv.Gravity = Gravity.FILL 'Set the Gravity to fill the Image View
Activity.AddView(iv, 0, 0, iv.Width, iv.Height) 'Show the Imageview