I saw many code about crop picture in forum
Some code have problem with permission and some code have some problem other
Please give me code for crop that working in all device
I saw many code about crop picture in forum
Some code have problem with permission and some code have some problem other
Please give me code for crop that working in all device
Sub cropPicture(Directory As String, PictureName As String, PictureName2 As String)
Dim i As Intent
i.Initialize("com.android.camera.action.CROP","")
i.SetType("image/*")
i.SetComponent(ParseUri("file://" & File.Combine(Directory, PictureName)))
i.PutExtra("crop", "true")
i.PutExtra("aspectX", 1)
i.PutExtra("aspectY", 1)
i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName2)))
StartActivity(i)
End Sub
Sub cropPicture(Directory As String, PictureName As String, PictureName2 As String)
Dim i As Intent
i.Initialize("com.android.camera.action.CROP","")
i.SetType("image/*")
i.SetComponent(ParseUri("file://" & File.Combine(Directory, PictureName)))
i.PutExtra("crop", "true")
i.PutExtra("aspectX", 1)
i.PutExtra("aspectY", 1)
i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName2)))
StartActivity(i)
End Sub
Erel i attach my module that i use in my apps
I dont have problem in this module
But in some device example Howeii after select image and go to crop and after crop when i try to see result,i cannot see it or picture is destroying
Only i have problem in crop
Please guide me