Sub btn_save_Click
Dim Out As OutputStream
Bitmap1.Initialize3(Canvas1.Bitmap)
fileName = DateTime.Now & ".PNG"
Out = File.OpenOutput(File.DirRootExternal & "/fingerNotes",fileName, False)
Bitmap1.WriteToStream(out, 10, "PNG")
Out.Close
ResizeBitmap(LoadBitmap(File.DirAssets,fileName), 100, 20)
End Sub
Sub ResizeBitmap(original As Bitmap, width As Int, height As Int) As Bitmap
Dim new As Bitmap
new.InitializeMutable(width, height)
Dim c As Canvas
c.Initialize2(new)
Dim destRect As Rect
destRect.Initialize(0, 0, width, height)
c.DrawBitmap(original, Null, destRect)
Return new
End Sub