Dim SetHeight As Int, OSHeight As Int,Panheight As Int
' I had another panel on the panel to hide and reclaim space the svclist didn't have
SetHeight=scvList.Panel.Height + 150 ' The height to make the panel
Panheight=Panel1.Height 'Original Height of the panel
OSHeight=scvList.Height 'Original Height of the scvlist
Panel1.Height=SetHeight
scvList.Height=SetHeight
Obj1.target = Panel1
bmp.InitializeMutable(Activity.Width,SetHeight)
c.Initialize2(bmp)
DoEvents
Dim args(1) As Object
Dim types(1) As String
Obj2.target = c
Obj2.target = Obj2.GetField("canvas")
args(0) = Obj2.target
types(0) = "android.graphics.Canvas"
Obj1.RunMethod4("draw", args, types)
DoEvents
Dim out As OutputStream
out = File.OpenOutput(File.DirRootExternal, "Calculations.jpg", False)
bmp.WriteToStream(out, 100, "JPEG")
out.Close
scvList.Height=OSHeight
Panel1.Height=Panheight