Android Question Extract image of a panel

KZero

Active Member
Licensed 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:

vecino

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

serepite.png
 

RandomCoder

Well-Known Member
Licensed 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.
 
Top