net.aerith.misao.image.io
Class Tiff

java.lang.Object
  |
  +--net.aerith.misao.image.io.Format
        |
        +--net.aerith.misao.image.io.JimiFormat
              |
              +--net.aerith.misao.image.io.Tiff

public class Tiff
extends JimiFormat

The Tiff is a class to read and save TIFF file. It is just an access interface to the file.


Fields inherited from class net.aerith.misao.image.io.Format
url
 
Constructor Summary
Tiff(java.net.URL url)
          Constructs a Tiff with URL.
 
Method Summary
 java.lang.String getMimeType()
          Gets the MIME type ID.
 java.lang.String getName()
          Gets the name of the image format.
 void save(MonoImage image)
          Saves image buffer into an image file.
 void save(MonoImage image, LevelAdjustmentSet set)
          Saves an image buffer into an image file, using the specified LevelAdjustmentSet.
 
Methods inherited from class net.aerith.misao.image.io.JimiFormat
read, save
 
Methods inherited from class net.aerith.misao.image.io.Format
create, create, getTruncatedFilename, isFits, setURL
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Tiff

public Tiff(java.net.URL url)
Constructs a Tiff with URL.
Parameters:
url - the URL of the TIFF file.
Method Detail

getName

public java.lang.String getName()
Gets the name of the image format.
Overrides:
getName in class Format
Returns:
the name of the image format.

getMimeType

public java.lang.String getMimeType()
Gets the MIME type ID.
Overrides:
getMimeType in class JimiFormat
Returns:
the MIME type ID.

save

public void save(MonoImage image)
          throws java.io.IOException,
                 UnsupportedBufferTypeException,
                 UnsupportedFileTypeException
Saves image buffer into an image file. The url of the image file must be set previously.
Overrides:
save in class JimiFormat
Parameters:
image - the monochrome image buffer to save.
Throws:
java.io.IOException - if I/O error occurs.
UnsupportedBufferTypeException - if the data type is unsupported.
UnsupportedFileTypeException - if the file type is unsupported.

save

public void save(MonoImage image,
                 LevelAdjustmentSet set)
          throws java.io.IOException,
                 UnsupportedFileTypeException
Saves an image buffer into an image file, using the specified LevelAdjustmentSet. The url of the image file must be set previously.
Overrides:
save in class JimiFormat
Parameters:
image - the monochrome image buffer to save.
Throws:
java.io.IOException - if I/O error occurs.
UnsupportedFileTypeException - if the file type is unsupported.