You can convert any component to image. Take screenshot of specific component or screen
π¦ 4.91 KB
π com.jerin.s2b.ComponentToImage
Permissions :
WRITE_EXTERNAL_STORAGE
What's New π
π Save image to ASD in Android 10 and to External storage in below versions
π Create image of scroll arrangements and screens
Blocks
ConvertToImage
Method for convertToImage
component |
component |
component or screen to create image |
saveAs |
text |
filename or path to save |
Created
Event raised after image created and saved
filePath |
text |
complete path to file saved |
Sample
ππ½ Download Extension
Feel free to share your thoughts and report bugs
Documentation generated with Getaix.com
12 Likes
Anke
2
Means, that saveAs
is the relative path and saves the image in:
/storage/emulated/0/files.jpg
on Android < 10 and in the ASD for Android β₯ 10.
Correct?
2 Likes
Good Extension @Jerin_Jacob
Peter
4
I used it this way because you only need permission when Android version < 10.
2 Likes
Yes,
I'm using Qutil class to getExternalStorage ,
Since I'm having confusions with ASD.
Peter
6
I really like this extension. Used it several times. For instance here.
1 Like
Glad to hear that Peter
I was unable to post extensions in AppInventor community.
It says, need approval from moderator
.
However this one is live now.
Thank You
1 Like
Peter
9
That is why all extensions have to go through this proces
1 Like
It's a very good extension Jerin. Would be great if it could save to the shared directory /pictures in Android 10+
See Anke's guide:
1 Like