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

Discussion in 'iOS Questions' started by Graham Bancroft, Jun 21, 2017.

  1. Graham Bancroft

    Graham Bancroft Member Licensed 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
  2. Erel

    Erel Administrator Staff Member Licensed User

    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:
    ImageView1.Bitmap = LoadBitmap(File.DirAssets, "example.jpg")
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice