Searched refs:nearestWidth (Results 1 – 1 of 1) sorted by relevance
891 int nearestWidth = destWidth; // Width closest to source width that = 2^x, x is integer in scale() local893 while (nearestWidth < sourceWidth / 2) { in scale()894 nearestWidth *= 2; in scale()902 nearestWidth += rightMargin; in scale()906 BufferedImage scaled = new BufferedImage(nearestWidth, nearestHeight, imageType); in scale()911 g2.drawImage(source, 0, 0, nearestWidth, nearestHeight, in scale()915 sourceWidth = nearestWidth; in scale()