2010-08-11 18 views

Antwort

35

Definition des Verhältnisses:

ratio = width/height

Formel:

height = width/ratio = 240/2.40 = 100

+4

Und width = Höhe * Verhältnis – Marian07

+2

Diese Antwort könnte auch sein nützlich http://stackoverflow.com/questions/8014478/169-aspect-ratio-with-fixed-width#answer-8014510 – Marian07

0

Beispiel 02.40 berechnet wird. mit Javascript Programmiersprache.

var width = 240 ; 
var rat1 = 2; 
var rat2 = 40; 

var ratio = width/rat1; 
var calculated_height = ratio * rat2; 
Verwandte Themen