Hi,
I'm trying to use this library to rotate a picture.
As describe in example, I declare my crop:
But on line "civ.ImageBitmap" system tell me:
I've tried with:
But still an error:
Any idea ????
Thanks in advance.
I'm trying to use this library to rotate a picture.
As describe in example, I declare my crop:
B4X:
Dim civ As CropImageView
Dim b As Bitmap
b.Initialize(File.DirRootExternal,"1.jpg")
civ.ImageBitmap = b
But on line "civ.ImageBitmap" system tell me:
B4X:
java.lang.RuntimeException: Object should first be initialized (CropImageView).
I've tried with:
B4X:
Dim civ As CropImageView
civ.Initialize("Photo")
Dim b As Bitmap
b.Initialize(File.DirRootExternal,"1.jpg")
civ.ImageBitmap = b
But still an error:
B4X:
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1351)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2774)
at android.content.res.Resources.getLayout(Resources.java:1165)
at android.view.LayoutInflater.inflate(LayoutInflater.java:421)
at com.edmodo.cropper.CropImageView.init(CropImageView.java:473)
at com.edmodo.cropper.CropImageView.<init>(CropImageView.java:78)
at de.donmanfred.CropImageViewWrapper._initialize(CropImageViewWrapper.java:56)
at de.donmanfred.CropImageViewWrapper.Initialize(CropImageViewWrapper.java:49)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:747)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:897)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:839)
at ANOVO.V1.cameraexclass._camera_picturetaken(cameraexclass.java:213)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:702)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:339)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA$1.run(BA.java:293)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Any idea ????
Thanks in advance.