Oblicz wysokość obrazu / wideo na podstawie proporcji i szerokości
I have a width: 240 Mam proporcje: 2.40 Muszę ustalić wysokość na podstawie tych dwóch zmiennych. Jaka jest formuła?
12
2 answers
Definicja stosunku:
ratio = width / height
Formuła:
height = width / ratio = 240 / 2.40 = 100
39
Author: darma,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-04-06 18:06:20
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-04-06 18:06:20
Przykład obliczenia 2: 40 . korzystanie z języka programowania javascript.
var width = 240 ;
var rat1 = 2;
var rat2 = 40;
var ratio = width / rat1;
var calculated_height = ratio * rat2;
0
Author: Softmixt,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-03-05 22:52:14
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-03-05 22:52:14