Lines Matching refs:ratio
707 $ratio = $this->_fill_ratio($mw,$mh,$vpw,$vph);
708 $iw = floor($mw * $ratio);
709 $ih = floor($mh * $ratio);
716 $ratio = $this->_fit_ratio($mw,$mh,$vpw,$vph);
717 $iw = floor($mw * $ratio);
718 $ih = floor($mh * $ratio);
837 $ratio = 1;
839 $ratio = $maxw/$w;
840 if($h * $ratio > $maxh){
841 $ratio = $maxh/$h;
845 $ratio = $maxh/$h;
846 if($w * $ratio > $maxw){
847 $ratio = $maxw/$w;
850 return $ratio;
854 $ratio = 1;
856 $ratio = $maxw/$w;
857 if($h * $ratio < $maxh){
858 $ratio = $maxh/$h;
862 $ratio = $maxh/$h;
863 if($w * $ratio < $maxw){
864 $ratio = $maxw/$w;
867 return $ratio;