public class ImageResource extends HtmlResource
name| Constructor and Description |
|---|
ImageResource(String name,
BufferedImage image) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
String |
getFileEnding() |
float |
getHeight() |
String |
getMimeType() |
float |
getWidth() |
double |
getX() |
double |
getY() |
void |
setX(double x) |
void |
setY(double y) |
getNamepublic ImageResource(String name, BufferedImage image)
public byte[] getData()
throws IOException
getData in class HtmlResourceIOExceptionpublic String getFileEnding()
getFileEnding in class HtmlResourcepublic String getMimeType()
getMimeType in class HtmlResourcepublic void setX(double x)
public double getX()
public void setY(double y)
public double getY()
public float getHeight()
public float getWidth()
Copyright © 2019. All rights reserved.