def DimensionToPixel(dimension):
  return int((1.0 * dimension * window_height) / iphone_dims[1])
dataset/ETHPy150Open viewfinderco/viewfinder/clients/experimental/viewfinder.py/DimensionToPixel/original