thumbnail

  1. Alexander Stolte

    Android Example [B4X] Create Thumbnail and save it

    SavePictureToFile(XUIImageToJPEGByteArray(CreateThumbnail(xui.LoadBitmapResize(File.DirAssets,"Snapchat-248558753.jpg",150dip,150dip,True)),150dip,150dip,50),File.DirRootExternal,"test.jpg") "quality" on "XUIImageToJPEGByteArray" results on a: 910kb image quality = 50 = 17,69KB quality = 100 =...
  2. Alexander Stolte

    Android Code Snippet [B4X] Create square Thumbnail

    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 /...
  3. kokoroayo

    Android Question Grid Menu

    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...
  4. I

    Android Question How to insert an image thumbnail into mediastore?

    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...
  5. Lucas Eduardo

    Android Question get image from a video

    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...
Top