At the very start of the project the client had vector images of needles. The task seemed to be really simple: we just needed to add all necessary values in millimeters using graphic editor.
It's important to note that all the values are specified in pixels, as we're dealing with pixels in programming, design and the device itself. It's meaningless to convey pixels into millimeters directly in this case. The thing is, it's very important to take the number of dots per inch into account on the screen of the end device (ppi).
This figure is different for each model. The number of ppi was 264 on iPad. If the needle is 31 mm long, then the correct number of pixels is 322. This number was obtained by dividing the number of millimeters by the actual size of one pixel on the tablet screen.
After identifying the required ratio, we had to manually (because this work cannot be done automatically) set the required pixel sizes for each of the thousands of products.