B4J Question How draw points over image

mw71

Active Member
Licensed User
Longtime User
Hello,

I would like to display an image (jpg) and dynamically change points on it.
The loading of the image is successful (Image View as B4XView, SetBitmap....), the drawing of the points (first static) is not.

I work with B4X Pages.

How can I make this work?
 

klaus

Expert
Licensed User
Longtime User
You need to give more details on what exactly you want to do.
You want to dynamically change points on it.
What kind of image, what kind of points, do you only want to add points or also remove points, do you want to modify the image with these points and keep the modified one, etc. ?
Depending on what you want, the solution might be different.
Instead of an ImageView i would use a Pane as a B4XView and a B4XCanvas to draw the image and the draw the points.
And eventually a second one on top for intermediate or the dynamic drawings.
You could also post a small project showing the problem so we could see what you have done and how.
 
Last edited:
Upvote 0

mw71

Active Member
Licensed User
Longtime User
Hi Klaus,

The image is available as JPG in the File.DirAssets folder (of course I can convert it to another format if needed).
The image needs to be loaded only once, it will not be changed.
The points should be quite simple, e.g. a colored, filled circle. Also (preferably colored) text would be a good solution.
I had the idea to put the points "like on a foil" over it.
The points are to be created and also removed again. This should then be controlled via a timer (this works).
 
Upvote 0
Top