public class Image
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Image.edit |
static class |
Image.metadata |
static class |
Image.read
Holder for the read method(s).
|
static class |
Image.Type
An image type definition.
|
class |
Image.write
Holder for the write methods.
|
| Modifier and Type | Field and Description |
|---|---|
Image.edit |
edit |
Image.write |
write |
| Modifier and Type | Method and Description |
|---|---|
XMPMeta |
clearXMP()
Clears the Adobe XMP object and returns a reference for further modification.
|
Image |
clone()
Creates a copy of this image that can be manipulated without changing the original.
|
java.awt.Color |
getBackground()
Used when flattening (ie: converting an image with alpha to one without) to determine the
background color.
|
java.awt.color.ICC_Profile |
getProfile() |
int |
getRes()
The currently set resolution - or the one read when the image was created (defaults to 72).
|
XMPMeta |
getXMP()
Returns the Adobe XMP Object from the initial image read (if any) - unless the
clearXMP() method has been called. |
Image |
normalize(boolean removeAlpha)
Convert this image to an INT_ARGB or INT_RGB BufferedImage Type.
|
java.lang.String |
printXMP()
Serializes the Adobe XMP Object to a String using the factory method with no Serialize Options.
|
Image |
removeAlpha()
Remove the alpha channel from the image.
|
Image |
setBackground(java.awt.Color background)
Used when flattening (ie: converting an image with alpha to one without) to determine the
background color.
|
Image |
setProfile(byte[] profile) |
Image |
setProfile(java.awt.color.ICC_Profile profile) |
Image |
setRes(int res)
The DPI resolution to write into the image.
|
Image |
setXMP(XMPMeta xmp) |
public Image.edit edit
public Image.write write
public java.awt.color.ICC_Profile getProfile()
public Image setProfile(java.awt.color.ICC_Profile profile)
public Image setProfile(byte[] profile)
public Image clone()
clone in class java.lang.Objectpublic XMPMeta getXMP()
clearXMP() method has been called.public XMPMeta clearXMP()
public java.lang.String printXMP()
public Image removeAlpha()
public Image normalize(boolean removeAlpha)
removeAlpha - to optionally replace the alpha channel with the background colorpublic java.awt.Color getBackground()
public Image setBackground(java.awt.Color background)
background - public int getRes()
public Image setRes(int res)
res - in DPI