Sub CreateSquareThumbnail(Input As B4XBitmap) As B4XBitmap
If Input.Width <> Input.Height Then
'if the image is not square then we crop it to be a square.
Dim l As Int = Min(Input.Width, Input.Height)
Return Input.Crop(Input.Width / 2 - l / 2, Input.Height / 2 - l /...
Hi all,
I have an assignment to create an app to capture data for different diseases in locations. The list of diseases shall be loaded from database and displayed on the main page like a thumbnail in a grid with names written under each. Any disease clicked will open a page where data for the...
Previously I asked a question on how to delete thumbnails from mediastore and got a working solution from Erel using ContentResolver. Now I am trying to do the opposite i.e. insert an image thumbnail into mediastore.
I can see that ContentResolver has an Insert method but the parameters confuse...
Hello, i am trying to get image from a video. I did it when i recorded a video and went back to app, but when i use the ContentChooser i can't do this.
How can i get the image from a video after i choose this image with ContentChooser?
Here is my code to get the image after i record a video...