Trying to use B4XCanvas for the first time.
Trying to join red point by drawing the yellow lines.
B4XCanvas is tied to the container placed over the image, but strange that the area where lines are visible - is limited sometimes, when app window is maximized:
Fullscreen:
Dimensions of the lines container is changed together with dimensions of the imageview.
Lines like placed into a box when app window is big.
What is wrong ?
If I understand correctly, the dots are not place onto the canvas, right?
I am guessing the coordinates scheme changes with the re-dimensioning of the image. Try to first place the dots on the same canvas plane, and once that works with the zoom, then connecting the dots will be a breeze.
It's Erel's code of ZoomImageView with several containers.
Some for dragging, some for zooming. One of them contains the ImageView.
I added the container for dots and cursor, and mouse events...
And now added the container for drawing lines that must be ... over the ImageView, transparent for mouse clicks...
It cannot have the same container with the Imageview - drawn lines are ... not visible under image