Android Question open pre selected image to crop

Douglas Farias

Expert
Licensed User
Longtime User
hi again
i m trying to open a pre selected imagem to crop but it dont works

http://www.b4x.com/android/forum/threads/library-rscrop-crop-images-with-gallery.19938/

this is the lib
this lib open a galery, you select a imagem to crop

but my question is all to open a imagem

File.DirDefaultExternal , "1.jpg" direct without galery selection

i think is possible because in the lib instructions have this
  • cropImage3 (scale As Boolean, return_data As Boolean, faceDetection As Boolean, circleCrop As Boolean, btmp As Bitmap)
    Crops an image with the standard media gallery.
    Difference is that you can preselect a bitmap with this.
    scale: - should it scale
    return_data: - Return the bitmap with Action=inline-data by using the data
    faceDetection:
    circleCrop: - if this string is not null, it will provide some circular crop

but dont work i tryed to make this

Dim dada As Bitmap
dada = LoadBitmap(File.DirRootExternal, "1.jpg")

CropImage.cropImage3(False,True,False,False,dada )
but dont work

any ideia? *-*
 
Top