Java Utililty Methods JComponent to Image

List of utility methods to do JComponent to Image

Description

The list of methods to do JComponent to Image are organized into topic(s).

Method

voidtileImage(Image img, Component comp, Graphics g, int x, int y, int width, int height)
Tiles a rectangular region of an AWT Graphics context with a specified image.
if (img == null || g == null) {
    throw new NullPointerException("Image/Graphics null");
Shape origclip = g.getClip();
g.setClip(x, y, width, height);
int imgwidth = img.getWidth(comp);
int imgheight = img.getHeight(comp);
int ypos = y;
...