function [dim_in_pix] = JA_prop2dim(misure_schermo, propX, propY) % transforms distances from proportions to pixels dim_in_pix(1) = round(propX*misure_schermo(3), 0); dim_in_pix(2) = round(propY*misure_schermo(4), 0); end