src/main/java/com/mxgraph/canvas/mxGraphicsCanvas2D.java
protected Image scaleImage(Image img, int w, int h)
	{
		Dimension size = getImageSize(img);

		if (w == size.width && h == size.height)
		{
			return img;
		}
		else
		{
			return img.getScaledInstance(w, h, IMAGE_SCALING);
		}
	}
/**
	 * Uses {@link #IMAGE_SCALING} to scale the given image.
	 */
Uses  #IMAGE_SCALING to scale the given image.
Uses #IMAGE_SCALING to scale the given image .
protected Image scaleImage(Image img, int w, int h)
	{
		Dimension size = getImageSize(img);
		if (w == size.width && h == size.height)
		{
			return img;
		}
		else
		{
			return img.getScaledInstance(w, h, IMAGE_SCALING);
		}
	}
protected Image scaleImage ( Image img , int w , int h ) { Dimension size = getImageSize ( img ) ; if ( w == size . width && h == size . height ) { return img ; } else { return img . getScaledInstance ( w , h , IMAGE_SCALING ) ; } }
Uses {@link #IMAGE_SCALING} to scale the given image.
Uses { @link #IMAGE_SCALING } to scale the given image .