public class DefaultSimpleImage extends java.lang.Object implements SimpleImage
Constructor and Description |
---|
DefaultSimpleImage() |
DefaultSimpleImage(java.awt.image.BufferedImage image) |
DefaultSimpleImage(java.lang.Object source) |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
boolean |
equals(java.lang.Object obj) |
DefaultSimpleImage |
fitinto(int width,
int height) |
java.awt.image.BufferedImage |
getBufferedImage() |
java.awt.image.BufferedImage |
getBufferedImage(int page) |
int |
getCountPages() |
java.lang.String |
getFormatName() |
int |
getHeight() |
int |
getWidth() |
int |
hashCode() |
DefaultSimpleImage |
horizontalflip() |
boolean |
isEmpty() |
DefaultSimpleImage |
resize(double factor) |
DefaultSimpleImage |
resize(int width,
int height) |
DefaultSimpleImage |
rotate(int angle) |
void |
save(java.io.File output,
java.lang.String formatName) |
void |
save(java.io.OutputStream output,
java.lang.String formatName) |
void |
set(java.awt.image.BufferedImage image) |
void |
set(java.lang.Object source) |
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image img) |
byte[] |
toBytearray() |
byte[] |
toBytearray(java.lang.String format) |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String format) |
java.lang.String |
toStringBase64() |
java.lang.String |
toStringBase64(java.lang.String format) |
java.lang.String |
toURL() |
DefaultSimpleImage |
transform(java.awt.geom.AffineTransform transform) |
DefaultSimpleImage |
transform(java.awt.geom.AffineTransform transform,
int width,
int height) |
DefaultSimpleImage |
verticalflip() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isEmpty, isEmpty, isEmptyQuietly
public DefaultSimpleImage()
public DefaultSimpleImage(java.awt.image.BufferedImage image)
public DefaultSimpleImage(java.lang.Object source)
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image img)
public void clean()
public java.awt.image.BufferedImage getBufferedImage()
getBufferedImage
in interface SimpleImage
public java.awt.image.BufferedImage getBufferedImage(int page)
public int getCountPages()
public java.lang.String getFormatName()
getFormatName
in interface SimpleImage
public void set(java.awt.image.BufferedImage image)
set
in interface SimpleImage
public void set(java.lang.Object source)
set
in interface SimpleImage
public int getWidth()
getWidth
in interface SimpleImage
public int getHeight()
getHeight
in interface SimpleImage
public DefaultSimpleImage resize(double factor)
resize
in interface SimpleImage
public DefaultSimpleImage resize(int width, int height)
resize
in interface SimpleImage
public DefaultSimpleImage fitinto(int width, int height)
fitinto
in interface SimpleImage
public DefaultSimpleImage rotate(int angle)
rotate
in interface SimpleImage
public DefaultSimpleImage horizontalflip()
horizontalflip
in interface SimpleImage
public DefaultSimpleImage verticalflip()
verticalflip
in interface SimpleImage
public DefaultSimpleImage transform(java.awt.geom.AffineTransform transform, int width, int height)
transform
in interface SimpleImage
public DefaultSimpleImage transform(java.awt.geom.AffineTransform transform)
transform
in interface SimpleImage
public byte[] toBytearray()
toBytearray
in interface SimpleImage
public byte[] toBytearray(java.lang.String format)
toBytearray
in interface SimpleImage
public java.lang.String toString()
toString
in interface SimpleImage
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String format)
toString
in interface SimpleImage
public java.lang.String toStringBase64(java.lang.String format)
toStringBase64
in interface SimpleImage
public java.lang.String toStringBase64()
toStringBase64
in interface SimpleImage
public java.lang.String toURL()
toURL
in interface SimpleImage
public void save(java.io.File output, java.lang.String formatName) throws java.io.IOException
save
in interface SimpleImage
java.io.IOException
public void save(java.io.OutputStream output, java.lang.String formatName) throws java.io.IOException
save
in interface SimpleImage
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object