public class ScaledImage extends Object
Constructor and Description |
---|
ScaledImage(String url,
Dimension originalSize,
BufferedImage image) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Dimension dim) |
boolean |
contains(int width,
int height) |
boolean |
contains(ScaledImage img) |
boolean |
fits(Dimension dim) |
boolean |
fits(int width,
int height) |
boolean |
fits(ScaledImage img) |
long |
getArea() |
BufferedImage |
getImage() |
Dimension |
getOriginalSize() |
String |
getUrl() |
String |
toHTMLInlineString(String format) |
public ScaledImage(String url, Dimension originalSize, BufferedImage image)
public Dimension getOriginalSize()
public BufferedImage getImage()
public String getUrl()
public boolean contains(ScaledImage img)
public boolean contains(Dimension dim)
public boolean contains(int width, int height)
public boolean fits(ScaledImage img)
public boolean fits(Dimension dim)
public boolean fits(int width, int height)
public long getArea()
public String toHTMLInlineString(String format) throws IOException
IOException
Copyright © 2009–2021 Norconex Inc.. All rights reserved.