Is there a way for me to use a custom checkmark image for the count tool? I have attempted to listen to annotation creation events on the tool & update the image data using the setImageData API but noticed that the count tool doesn’t produce instances of StampAnnotation so the method is unavailable.
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
It seems like you’re trying to customize the appearance of the CountMeasurementCreateTool by using a custom image, but you’re facing challenges because it doesn’t create instances of StampAnnotation. The CountMeasurementCreateTool typically uses a different method to render its annotations, and you cannot directly set image data like you would with a StampAnnotation.
Some things you can try:
Consider creating a custom tool that mimics the CountMeasurementCreateTool functionality but utilizes StampAnnotations for rendering. This way, you can leverage the setImageData API.
Explore the possibility of modifying the rendering logic of the existing tool by accessing its underlying implementation, if accessible.
Check if the WebViewer API provides any custom rendering hooks or callbacks that allow you to customize the appearance of annotations.
Here are some resources that might help you:
WebViewer API Documentation - Explore the WebViewer API to see if there are methods to customize tool behavior.
Custom Annotations Guide - Learn how to create and use custom annotations, which might help in creating a custom tool.
Stamp Annotations - Understand how to work with StampAnnotations and their methods like setImageData.
Tools Guide - Get insights into customizing and creating tools in WebViewer.
Hopefully, this helps you solve your problem while you wait for a human to get back to you.