[FREE] Take screenshot of components, arrangement and screen | Extension ComponentToImage

Component To Image | Free

You can convert any component to image. Take screenshot of specific component or screen

#Tools

πŸ“¦ 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

β€’ Reduced size 5kb

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

:bug: Feel free to share your thoughts and report bugs

Documentation generated with Getaix.com

12 Likes

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
:+1:

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.

I really like this extension. Used it several times. For instance here.

1 Like

Glad to hear that Peter :relaxed:

I was unable to post extensions in AppInventor community.
It says, need approval from moderator. :frowning_face:

However this one is live now.

Thank You

1 Like

Wow, very good extension :+1::+1:

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

I found this extension, but I do not want to save it in the device , I want to set it in an image component .picture inside the app .

With that extension you will have to save it as a file first, before you can display it in an image component. You could store these files in a specific directory, then delete them as and when they are no longer required, or if just the one file, keep overwriting it using the same file name.

Nothing saved !!

Nothing saved or you did not find the file, because it is stored in ASD?

Also which Android version are you using for your tests? Btw. to store something in ASD, no permission is required...

Which filepath do you get in the Created event?

Taifun

Android 13

I didnt find it in the phone gallary

you can only find those images in the gallery, which are accessible
images in the ASD are not accessible by other apps and the ComponentToImage extension stores the image in the ASD

also if you store a new image in shared storage it will not automatically appear in the gallery... you first have to refresh the gallery... the tools extension offers a GalleryRefresh method for this...

btw. you forgot to answer the question

Taifun

1 Like

Nothing

If you wang to see the image in the gallery, you have to first cooy or move it to shared storage

Taifun

1 Like

:+1: :+1: :+1: :+1: The task is now completed successfully

1 Like

Well done
Congratulations

Taifun

1 Like