I started trying the muio code XUi pe ril 3D with B4J.
Using the first part of the renderiung that deals with polygons uses B4XCanvas that works correctly.
A second part uses BitmapCreator. For B4A I used the last version but in B4J there is not yet.
At the end of the code I apply BitmapCreator in the Bread like this
In B4A it works while in B4J it generates me this error ...
Using the first part of the renderiung that deals with polygons uses B4XCanvas that works correctly.
A second part uses BitmapCreator. For B4A I used the last version but in B4J there is not yet.
At the end of the code I apply BitmapCreator in the Bread like this
B4X:
Pane.SetBitmap(BitmapCreator.Bitmap.Resize(Pane.Width,Pane.height,False))
Waiting for debugger to connect...
Program started.
Errore nella linea: 234 (BitmapCreator)
java.lang.ClassCastException: anywheresoftware.b4j.objects.PaneWrapper$ConcretePaneWrapper$NonResizePane cannot be cast to javafx.scene.image.ImageView
at anywheresoftware.b4j.objects.ImageViewWrapper.SetImage(ImageViewWrapper.java:99)
at anywheresoftware.b4j.objects.B4XViewWrapper.SetBitmap(B4XViewWrapper.java:492)
at b4j.example.vector3d._rendertoview(vector3d.java:571)
at b4j.example.main._spinnerobiect_valuechanged(main.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:625)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:168)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:94)
at anywheresoftware.b4a.BA$1.run(BA.java:215)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)