-
Notifications
You must be signed in to change notification settings - Fork 811
Take snapshots
Jonas Gehring edited this page Apr 12, 2019
·
2 revisions
GraphView provides build-in functionality to generate a screenshot to save as file or to share it directly via Android share screen.
It's also possible to just generate the snapshot and use the image data for your own purpose.
This are the simple calls:
// directly share it
graph.takeSnapshotAndShare(mActivity, "exampleGraph", "GraphViewSnapshot");
// get the bitmap
Bitmap bitmap = graph.takeSnapshot();
Notice:
The runtime permission WRITE_EXTERNAL_STORAGE
is needed!
.$ git clone https://github.com/jjoe64/GraphView.git