Searched refs:targetRectangle (Results 1 – 1 of 1) sorted by relevance
100 public static void drawScaledImage(GC gc, Image image, Rectangle targetRectangle) { in drawScaledImage() argument106 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()