Very new to B4J. Already convinced it is the way to go for new projects. I cannot seem to do this in B4A either though.
I am not using the correct search words in the forum. How to get the newly rotated ImageView/Bitmap/B4Anything out of a B4XImageView?
"Pane is in unnamed module of loader app" - no idea whatsoever what this is telling me.
I am not using the correct search words in the forum. How to get the newly rotated ImageView/Bitmap/B4Anything out of a B4XImageView?
"Pane is in unnamed module of loader app" - no idea whatsoever what this is telling me.
B4X:
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private xui As XUI
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1")
MainForm.Show
' Dim p As B4XView = MainForm.RootPane
' Log("p.NumberOfViews = " & p.NumberOfViews) ' "1"
''Dim xImgView As B4XImageView = p.GetView(0) ' type mismatch
' Dim xView As B4XView = p.GetView(0)
' Dim bm As B4XBitmap = xView.GetBitmap ' boom line
' Log(bm.IsInitialized)
' java.lang.ClassCastException: class anywheresoftware.b4j.objects.PaneWrapper$ConcretePaneWrapper$NonResizePane
' cannot be cast to class javafx.scene.image.ImageView
' (anywheresoftware.b4j.objects.PaneWrapper$ConcretePaneWrapper$NonResizePane [B]is in unnamed module[/B]
' of loader 'app'; javafx.scene.image.ImageView is in module javafx.graphics of loader 'app')
' Dim iv As ImageView = p.GetView(0) ' boom line
' Log(iv.IsInitialized)
' same error
' Dim xView As B4XView = p.GetView(0)
' Dim iv As ImageView = xView ' boom line
' Log(iv.IsInitialized)
' same error
Dim p As Pane = MainForm.RootPane
Log(p.NumberOfNodes) ' "1"
Dim bm As ImageView = p.GetNode(0) ' boom lines
Log(bm.IsInitialized)
' same error
End Sub