new_danoptic
Member
I want to save a xCustomlistview to a jpg file.
I found how to save the visible part using the following code, but I need to save the entire xCustomlistview including the items that are not visible.
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "Test.jpg", False)
clv2.AsView.Snapshot.WriteToStream(Out, 100, "JPEG")
Out.Close
Dim i As Intent
i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _
"file://" & File.Combine(File.DirRootExternal, "Test.jpg"))
Dim p As Phone
p.SendBroadcastIntent(i)
I found how to save the visible part using the following code, but I need to save the entire xCustomlistview including the items that are not visible.
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "Test.jpg", False)
clv2.AsView.Snapshot.WriteToStream(Out, 100, "JPEG")
Out.Close
Dim i As Intent
i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _
"file://" & File.Combine(File.DirRootExternal, "Test.jpg"))
Dim p As Phone
p.SendBroadcastIntent(i)