check this and help.
Sub Globals
Dim iv1 As ImageView
Dim bmp As Bitmap
Dim jpg As Jpeg
Dim In As InputStream
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim Canvas1 As Canvas
Dim DestRect As Rect
Dim SrcRect As Rect
Activity.LoadLayout("320p")
jpg.Initialize("jpg")
In = File.OpenInput(File.DirAssets, "z.jpg")
bmp = jpg.LoadJpegArea(In,0,0,140,140)
iv1.SetBackgroundImage(bmp)
End Sub
On mobile screen i get error An error occured in sub main activity create in line .... bmp = jpg.LoadJpegArea(In,0,0,140,140)
On PC screen I get error JPEG ERROR. FORMAT ERROR. PARSER.DECODE
:signOops:
Cant load one area of picture previously loaded in FILES. Same error when i use DirRootExternal and when i put that jpeg file on sdcard.
Sub Globals
Dim iv1 As ImageView
Dim bmp As Bitmap
Dim jpg As Jpeg
Dim In As InputStream
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim Canvas1 As Canvas
Dim DestRect As Rect
Dim SrcRect As Rect
Activity.LoadLayout("320p")
jpg.Initialize("jpg")
In = File.OpenInput(File.DirAssets, "z.jpg")
bmp = jpg.LoadJpegArea(In,0,0,140,140)
iv1.SetBackgroundImage(bmp)
End Sub
On mobile screen i get error An error occured in sub main activity create in line .... bmp = jpg.LoadJpegArea(In,0,0,140,140)
On PC screen I get error JPEG ERROR. FORMAT ERROR. PARSER.DECODE
:signOops:
Cant load one area of picture previously loaded in FILES. Same error when i use DirRootExternal and when i put that jpeg file on sdcard.