B4J Question B4XImageView programmable creation,rotation and position

Ecco

Member
Hi guys. I found myself struggling with B4XImageView. I did went trough all threads talking about this, that i could find, but i just couldnt make it work.
What i want to do is create B4XImageView 'on the fly' and image loaded represent position and direction of 'component' tracked on conveyor belt (data about position is fed trough RS485. All this is fine and works well with ImageView(except cant be rotated, which is new request).
With ImageView it works as:
B4X:
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1") 'This is empty layout
MainForm.Show
icon.Initialize("D:\UNIT_L\Files","L1.png")
    
'NORMAL IMAGEVIEW
IM1.Initialize("L1")
IM1.SetImage(icon)
MainForm.RootPane.AddNode(IM1,0,0,22,22)
...
..blah blah
..

So how would i create B4XImageView in similar fashion, which will allows me to update indicators on screen regarding rotation as well?? I know im asking something visited many times, and im sorry for that.
 

Ecco

Member
B4X:
1. ImageViews can be rotated. You just need to cast the ImageView to B4XView.

Thank you very much. Works well.
 
Upvote 0
Top