public class DasPNGEncoder extends DasPNGConstants
DEFAULT_GAMMA, gamma, KEYWORD_AUTHOR, KEYWORD_COMMENT, KEYWORD_COPYRIGHT, KEYWORD_CREATION_TIME, KEYWORD_DESCRIPTION, KEYWORD_DISCLAIMER, KEYWORD_PLOT_INFO, KEYWORD_SOFTWARE, KEYWORD_SOURCE, KEYWORD_TITLE, KEYWORD_WARNING, textMap
Constructor and Description |
---|
DasPNGEncoder()
Creates a new instance of DasPNGEncoder
|
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String keyword,
java.lang.String content)
Adds a tEXT chunk with the specified keyword and content.
|
void |
removeAllText(java.lang.String keyword)
Removes all tEXT chunk with the specified keyword
|
void |
removeText(java.lang.String keyword,
java.lang.String content)
Removes the tEXT chunk with the specified keyword and content.
|
void |
setGamma(int gamma) |
void |
write(java.awt.image.BufferedImage image,
java.io.OutputStream out) |
getGamma, getISO8859_1Bytes, getText
public void addText(java.lang.String keyword, java.lang.String content)
keyword
- the specified keywordcontent
- the content for the tEXT chunkpublic void removeText(java.lang.String keyword, java.lang.String content)
keyword
- the specified keywordcontent
- the specified content to be removedpublic void removeAllText(java.lang.String keyword)
keyword
- the specified keyword.public void setGamma(int gamma)
public void write(java.awt.image.BufferedImage image, java.io.OutputStream out) throws java.io.IOException
java.io.IOException