Lines Matching refs:scaleFactor
917 double scaleFactor = Math.min((double)width / (double)iw,
924 if (scaleFactor >= 2) {
927 scaleFactor = Math.floor(scaleFactor);
928 adjw = iw * (int)scaleFactor;
929 adjh = ih * (int)scaleFactor;
930 scaleMeasure = 1.0 - 0.5 / scaleFactor;
931 } else if (scaleFactor >= 1) {
933 scaleFactor = 1.0;
937 } else if (scaleFactor >= 0.75) {
939 scaleFactor = 0.75;
943 } else if (scaleFactor >= 0.6666) {
945 scaleFactor = 0.6666;
952 //larger than 1/scaleFactor
953 double scaleDivider = Math.ceil(1.0 / scaleFactor);
954 scaleFactor = 1.0 / scaleDivider;
964 bestScaleFactor = scaleFactor;