public class BackgroundTiler extends Object
| Constructor and Description |
|---|
BackgroundTiler(BufferedImage src)
Creates a background tiler with the specified source image.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNaturalHeight()
Returns the "natural" height of the image being used to tile the background.
|
int |
getNaturalWidth()
Returns the "natural" width of the image being used to tile the background.
|
void |
paint(Graphics g,
int x,
int y,
int width,
int height)
Fills the requested region with the background defined by our source image.
|
public BackgroundTiler(BufferedImage src)
public int getNaturalWidth()
public int getNaturalHeight()
public void paint(Graphics g, int x, int y, int width, int height)
Copyright © 2015. All rights reserved.