iOS Question XGestureRecogniser / GestureRecognizer inserting a .jpg file to test pan/pinch

Graham Bancroft

Member
Licensed User
Longtime User
I have been tinkering with JackKirk's XGestureRecogniser and (I believe Erel's) GestureRecogniser zip's.
Can you help me, How do you insert a jpg file from (File.DirAssets,"example.jpg") into XGestureRecognizer (or Gesture Recognizer), so I can play with a real image (not just red square) to check it out, I have been beating around the bush for ages (I am a real newby to B4i). Thanks Graham
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
and (I believe Erel's) GestureRecogniser zip's.
It was written by @narek adonts.
I'm not really familiar with these libraries or examples, however you can add ImageViews to the panels and set their image with the designer or at runtime:
B4X:
ImageView1.Bitmap = LoadBitmap(File.DirAssets, "example.jpg")
 
Upvote 0
Top