Hi,
I'm using the following to create an image of my table.
It works great, but now I am wondering how can I add the headers to the image.
The header is generated at the same time as the table as:
Panel1.AddView(Header, scvList.Left, scvList.Top - RowHeight, scvList.Width, RowHeight)
any help would be appreciated.
I'm using the following to create an image of my table.
B4X:
Dim Obj1, Obj2 As Reflector
Dim bmp As Bitmap
Dim c As Canvas
Obj1.target = Obj1.GetActivityBA
Obj1.target = scvList.Panel ' on Panel1
bmp.InitializeMutable(Activity.Width,scvList.Panel.Height)
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
It works great, but now I am wondering how can I add the headers to the image.
The header is generated at the same time as the table as:
Panel1.AddView(Header, scvList.Left, scvList.Top - RowHeight, scvList.Width, RowHeight)
any help would be appreciated.