| Modifier | Constructor and Description |
|---|---|
protected |
ImageSource()
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getSourceHeight()
Return the height of the source image.
|
abstract int |
getSourceWidth()
Return the width of the source image.
|
abstract BufferedImage |
scale(Dimension
Scale the source image to a specific size
|
public abstract BufferedImagescale(Dimension destinationSize)
destinationSize - the exact size to scale the image source to. The image may be stretched as needed to fit this size.
It is assumed (but not enforced) that the destinationSize will be smaller than the source width/height.
public abstract int getSourceWidth()
public abstract int getSourceHeight()