MoBi_prop2dim.m 247 B

123456789
  1. function [dim_in_pix] = MoBi_prop2dim(misure_schermo, propX, propY)
  2. %transform proportions of the 2 screen axes in actual pixels
  3. dim_in_pix(1) = round(propX*misure_schermo(3), 0);
  4. dim_in_pix(2) = round(propY*misure_schermo(4), 0);
  5. end