Home
last modified time | relevance | path

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

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageOverlay.java231 double yScale = vi.getScaledImgSize() / (double) awtImage.getHeight(); in paint() local
239 if (xScale == 1.0 && yScale == 1.0) { in paint()
249 scaledAwtImage = ImageUtils.scale(awtImage, xScale, yScale, in paint()
255 scaledAwtImage = ImageUtils.scale(awtImage, xScale, yScale); in paint()
DImageUtils.java825 public static BufferedImage scale(BufferedImage source, double xScale, double yScale) { in scale() argument
826 return scale(source, xScale, yScale, 0, 0); in scale()
839 public static BufferedImage scale(BufferedImage source, double xScale, double yScale, in scale() argument
844 int destHeight = Math.max(1, (int) (yScale * sourceHeight)); in scale()
849 if (xScale > 0.5 && yScale > 0.5) { in scale()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourcePreviewHelper.java157 double yScale = HEIGHT / (double) height; in updatePreview() local
158 double scale = Math.min(xScale, yScale); in updatePreview()