vecino Well-Known Member Licensed User Longtime User Feb 26, 2015 #1 Hello, how I can extract the image of a panel? Regards.
DonManfred Expert Licensed User Longtime User Feb 26, 2015 #2 You dont to extract. it is the file generic.png in your assets-folder. In fact i dont know how to do, sorry. Upvote 0
You dont to extract. it is the file generic.png in your assets-folder. In fact i dont know how to do, sorry.
thedesolatesoul Expert Licensed User Longtime User Feb 26, 2015 #3 You can get it as a drawable using Panel.Background. Upvote 0
vecino Well-Known Member Licensed User Longtime User Feb 26, 2015 #6 klaus said: What exactly do you want to do ? Click to expand... I want to get the color of an area of the screen. It can be a panel with an image or imageview. Example: Upvote 0
klaus said: What exactly do you want to do ? Click to expand... I want to get the color of an area of the screen. It can be a panel with an image or imageview. Example:
KZero Active Member Licensed User Longtime User Feb 26, 2015 #7 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: Feb 26, 2015 Upvote 0
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
vecino Well-Known Member Licensed User Longtime User Feb 26, 2015 #9 Each "touch" on the screen, repeat the event several times. 3 times in this example. Why can it be? Thank You Upvote 0
Each "touch" on the screen, repeat the event several times. 3 times in this example. Why can it be? Thank You
DonManfred Expert Licensed User Longtime User Feb 26, 2015 #10 Check the Action of the events... A touch always gives more than one events. Touch down, touch up and so on Upvote 0
Check the Action of the events... A touch always gives more than one events. Touch down, touch up and so on
RandomCoder Well-Known Member Licensed User Longtime User Feb 26, 2015 #11 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
Like Manfred has suggested, just use a conditional statement in the event to only check on the touch_down event or the touch_up.
vecino Well-Known Member Licensed User Longtime User Feb 26, 2015 #12 Oh!, Thanks, folks, this is easy when you know Upvote 0