Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim jpg As Jpeg
Dim in As InputStream
Dim bmp As Bitmap
Dim iv As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
activity.LoadLayout("j1")
jpg.Initialize("jpg")
in = File.OpenInput(File.DirAssets, "NIM0207.jpg")
bmp = Jpg.LoadJpegSmaller(in, 2)
in = File.OpenInput(File.DirAssets,"NIM0207.jpg")
bmp = jpg.LoadJpegArea(in,100,100,220,220)
iv.SetBackgroundImage(bmp)
End Sub