Hi,
that's what I have
When called it shows a picture )
When I call the sub a 2nd time with new coordinates I want to force the former drawn image to disappear. Right now it overlays...
e.g.
run1 show picture1 at position 10,10
run2 show picture2 at position 10,10
Thanks for your ideas.
Chris
that's what I have
B4X:
Sub zeigegrafik(xkoord As Int, ykoord As Int, thewidth As Int, theheight As Int, name As String)
' ------------------------------------------------------------------------------------------------------------------------
' Zeigt an x,y an die Grafik <name> an mit den Maßen breite und höhe
' ------------------------------------------------------------------------------------------------------------------------
Dim bild As Bitmap
Dim imgView1 As ImageView
bild=LoadBitmap(File.DirAssets,name) '3
imgView1.Initialize(bild)
Activity.AddView(imgView1, xkoord, ykoord,thewidth,theheight) 'vars are given to sub
imgView1.Gravity=Gravity.FILL
imgView1.setBackgroundImage(bild)
'Msgbox("Done","")
End Sub
When called it shows a picture )
When I call the sub a 2nd time with new coordinates I want to force the former drawn image to disappear. Right now it overlays...
e.g.
run1 show picture1 at position 10,10
run2 show picture2 at position 10,10
Thanks for your ideas.
Chris