Hi everybody,
I have extracted a piece of code from forum to manipulate pictures or images. However, it shows a strange behaviour (or I can't see my error)...
The code:
Dim c As Canvas
Dim b As Bitmap
Dim i As ImageView
b.Initialize(File.DirRootExternal, "picture.jpg")
i.Initialize("")
Activity.AddView( i, 0, 0, 4000,3000)
c.Initialize(i)
--It seems that "b" bitmap hasn't anything to be with the rest of code, but...
If "i" dimensions are big (like the example), i get a imageview error: "imageview has stopped" and program closes. But not in case of small dimensions, like 1500x1000.
First, I thought that it was a imageview memory problem. However, if I delete b.initialize(File.Dir........) line, now none error shows and the program runs fine...
What could I do to avoid deleting this line and enabling adding big views?
Erel, could it be that i use ICS instead of Gingerbread?
Thanks!
I have extracted a piece of code from forum to manipulate pictures or images. However, it shows a strange behaviour (or I can't see my error)...
The code:
Dim c As Canvas
Dim b As Bitmap
Dim i As ImageView
b.Initialize(File.DirRootExternal, "picture.jpg")
i.Initialize("")
Activity.AddView( i, 0, 0, 4000,3000)
c.Initialize(i)
--It seems that "b" bitmap hasn't anything to be with the rest of code, but...
If "i" dimensions are big (like the example), i get a imageview error: "imageview has stopped" and program closes. But not in case of small dimensions, like 1500x1000.
First, I thought that it was a imageview memory problem. However, if I delete b.initialize(File.Dir........) line, now none error shows and the program runs fine...
What could I do to avoid deleting this line and enabling adding big views?
Erel, could it be that i use ICS instead of Gingerbread?
Thanks!