public interface Image
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g,
int width,
int height)
Draws the image on a given
Graphics2D object |
Size |
getSize()
Get the original size of the image
|
void draw(Graphics2D g, int width, int height)
Graphics2D
objectg
- The graphics object to draw the image onwidth
- The width to use for drawingheight
- The height to use for drawingSize getSize()
Copyright © 2017. All rights reserved.