I don't know about TouchImageView as I use my ScaleImageView which is Android only but is meant for this sort of application. It can natively draw a circle at a point of an image that moves with the image and can scale with the image if needed. It also gives you an OnDraw event so that you can draw anything you want on the image.
I don't know about TouchImageView as I use my ScaleImageView which is Android only but is meant for this sort of application. It can natively draw a circle at a point of an image that moves with the image and can scale with the image if needed. It also gives you an OnDraw event so that you can draw anything you want on the image.
I have a question about this library: How can I stop the circle being added in the centre of the image on startup? Can not see where this is added. Is there an option to remove a circle drawn or should the canvas be initialized again?
Which library? If you mean ScaleImageView the circle and text are drawn in the Viewer.ScaleImageView1_OnDraw event. Read all the comments in the XML and all should be clear.
Which library? If you mean ScaleImageView the circle and text are drawn in the Viewer.ScaleImageView1_OnDraw event. Read all the comments in the XML and all should be clear.
Yes I have read the XML and understand how the Viewer.ScaleImageView1_OnDraw event works but there is no code in the example that shows how the circle in the image below is created unless it is in another method but I have checked and don't see where it could be coming from. I have returned out of the ...OnDraw but still this circle appears on the first run. Sorry for my confusion!
I set the property to False in the designer and when clicking the siv there are no circles. Setting True/False in code also produces the same result so either you have to have the centre circle with circles appearing on touch or no circles at all.
Solution was to set circleX,CircleY = -10 and then the only circles that appear are when the SIV is touched.
No you don't. Examine the OnDraw event code. The clicked circle presently uses the radius of the intrinsic circle, if the intrinsic circle is not drawn the radius is zero so the clicked circle won't be drawn. Set the radius separately. You can draw whatever shapes and text you want wherever you want in the OnDraw event. There are no limitations.
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.