org.das2.util
Class DasPNGEncoder
java.lang.Object
org.das2.util.DasPNGConstants
org.das2.util.DasPNGEncoder
public class DasPNGEncoder
- extends DasPNGConstants
Fields inherited from class org.das2.util.DasPNGConstants |
DEFAULT_GAMMA, gamma, KEYWORD_AUTHOR, KEYWORD_COMMENT, KEYWORD_COPYRIGHT, KEYWORD_CREATION_TIME, KEYWORD_DESCRIPTION, KEYWORD_DISCLAIMER, KEYWORD_SOFTWARE, KEYWORD_SOURCE, KEYWORD_TITLE, KEYWORD_WARNING, textMap |
Constructor Summary |
DasPNGEncoder()
Creates a new instance of DasPNGEncoder |
Method Summary |
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 specifed keyword and content. |
void |
setGamma(int gamma)
|
void |
write(java.awt.image.BufferedImage image,
java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DasPNGEncoder
public DasPNGEncoder()
- Creates a new instance of DasPNGEncoder
addText
public void addText(java.lang.String keyword,
java.lang.String content)
- Adds a tEXT chunk with the specified keyword and content.
- Parameters:
keyword
- the specified keywordcontent
- the content for the tEXT chunk
removeText
public void removeText(java.lang.String keyword,
java.lang.String content)
- Removes the tEXT chunk with the specifed keyword and content.
- Parameters:
keyword
- the specified keywordcontent
- the specified content to be removed
removeAllText
public void removeAllText(java.lang.String keyword)
- Removes all tEXT chunk with the specified keyword
- Parameters:
keyword
- the specified keyword.
setGamma
public void setGamma(int gamma)
write
public void write(java.awt.image.BufferedImage image,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException