Pixel as Measurement Unit of Annotation

Hi,

what is the default measurement unit of Annotation in webviewer? How can we force to take on pixel value?

Here is my code sample:

if (annot instanceof Annotations.RectangleAnnotation) {

      annot.Width = 190;
      annot.Height = 80;

      annotationManager.redrawAnnotation(annot);
}

Hello, the measurement unit of Annotations is the pixel. Note that depending on the zoom you have on your viewer, the annotation size will change according to it.

If you want to see the exact size you have redrawn the annotation, you can use the setZoomLevel API and set it as 100%.

Please let us know if this is what you were looking for and if not, please describe your use case detailed so we can help you better with it.

Best,
Dandara Navarro