Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+22 votes

If I want to calibrate on a canvas that is in a different window as the canvas I will be doing all my tracking on, is there any way to set their calibration values as the same value if the canvas sizes are different? I have tried setting the distances as a percentage of the whole but I do not think that works because the pixel amounts would still be different.

asked in CSC285_Fall2018 by (100 points)

1 Answer

+7 votes
 
Best answer

I'm not sure what your application structure is, but is it possible that you could pass in your canvas size values into a method? Our team doesn't use an additional window to set the calibration, but perhaps you could pass in values like canvas.getHeight() and canvas.getWidth()? Or even pass in your entire canvas?

answered by (100 points)
selected by
...