Android Question Extract image of a panel

vecino

Well-Known Member
Licensed User
Longtime User
Hello, how I can extract the image of a panel?
Regards.

img.png
 

KZero

Active Member
Licensed User
Longtime User
put the image in imageview
the put this imageview on panel (to catch touch event)
on panel_touch event try this code

B4X:
Dim b As Bitmap
     b=imageview1.bitmap
    Activity.Color=b.getpixel(X,Y)

i didn't try it but i think it should work
 
Last edited:
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Each "touch" on the screen, repeat the event several times. 3 times in this example.
Why can it be?
Thank You

serepite.png
 
Upvote 0

RandomCoder

Well-Known Member
Licensed User
Longtime User
Like Manfred has suggested, just use a conditional statement in the event to only check on the touch_down event or the touch_up.
 
Upvote 0
Top