Page 1 of 1

Remark or annotation on images

Posted: Thu Jul 02, 2015 2:21 pm
by hawadi

Hello,

I have a question that I can't seem to find anywhere online.
Is there a way in Appery to upload an image via the camera or gallery and then add dots (or something else) when you click on a certain point on that image. I've tried using different js libraries but they're all for browsers with mouses etc.

Does anyone over here have an idea where I can look for this or maybe has the code already and would like to share?

Thank you very much!
Hawadi.


Remark or annotation on images

Posted: Thu Jul 02, 2015 8:42 pm
by Serhii Kulibaba

Hello Hawadi,

You can use canvas for this functionality.

  • Set image from camera/gallery to the canvas;

  • Write a dot/line on this canvas on a touch event;

    There are a lot of libraries for work with canvas.


Remark or annotation on images

Posted: Mon Jul 06, 2015 2:47 pm
by hawadi

Thank you Sergiy! I found a useful JS library to work with.
For anyone in need of this: I'm gonna write out the code and post it here afterwords.