Home
last modified time | relevance | path

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

/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/
DDrawUtils.java100 public static void drawScaledImage(GC gc, Image image, Rectangle targetRectangle) { in drawScaledImage() argument
106 if (imageWidth <= targetRectangle.width && imageHeight <= targetRectangle.height) { in drawScaledImage()
113 double k_w = targetRectangle.width / (double) imageWidth; in drawScaledImage()
114 double k_h = targetRectangle.height / (double) imageHeight; in drawScaledImage()
122 int destX = targetRectangle.x + (targetRectangle.width - newImageWidth) / 2; in drawScaledImage()
123 int destY = targetRectangle.y + (targetRectangle.height - newImageHeight) / 2; in drawScaledImage()