Home
last modified time | relevance | path

Searched refs:nearestWidth (Results 1 – 1 of 1) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageUtils.java891 int nearestWidth = destWidth; // Width closest to source width that = 2^x, x is integer in scale() local
893 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()