how to crop the image if the file : // to the image . not the user who choose it manually
the code below to select manually from the user
thanks
the code below to select manually from the user
B4X:
Dim i As Intent
i.Initialize(i.ACTION_PICK, "")
i.SetType("image/*")
i.PutExtra("crop", "false")
i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName)))
i.PutExtra("aspectX", aspectRatio.Width)
i.PutExtra("aspectY", aspectRatio.Height)
i.PutExtra("outputX", aspectRatio.Width)
i.PutExtra("outputY", aspectRatio.Height)
StartActivity(i)
thanks