Place the endpoints
After loading an image, draw a dimension line across the feature whose span matters. Its two marked ends identify the positions being compared, and the label records that separation in pixels. For a width or height, place the ends on the corresponding left and right edges or top and bottom edges. Precise endpoint placement matters because moving either end changes the measured span.