public class GeoTIFFWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COMP_DEFLATE
The TIFF deflate compression type.
|
static int |
COMP_NONE
The TIFF none compression type.
|
static int |
COMP_PACK
The TIFF PackBits compression type.
|
Constructor and Description |
---|
GeoTIFFWriter(java.io.OutputStream output,
EarthImageTransform trans)
Creates a new GeoTIFF writer using the specified output stream,
earth image transform, and no TIFF compression.
|
GeoTIFFWriter(java.io.OutputStream output,
EarthImageTransform trans,
int compress)
Creates a new GeoTIFF writer using the specified output stream,
earth image transform, and compression.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(java.awt.image.RenderedImage image)
Writes a GeoTIFF file to the output stream using the specified
image data.
|
void |
setArtist(java.lang.String artist)
Sets the Artist TIFF field.
|
void |
setComputer(java.lang.String computer)
Sets the HostComputer TIFF field.
|
void |
setDescription(java.lang.String description)
Sets the ImageDescription TIFF field.
|
void |
setSoftware(java.lang.String software)
Sets the Software TIFF field.
|
public static final int COMP_NONE
public static final int COMP_DEFLATE
public static final int COMP_PACK
public GeoTIFFWriter(java.io.OutputStream output, EarthImageTransform trans) throws java.io.IOException
output
- the output stream for writing.trans
- the earth image transform for earth location metadata.java.io.IOException
- if an error occurred writing to the output
stream.public GeoTIFFWriter(java.io.OutputStream output, EarthImageTransform trans, int compress) throws java.io.IOException
output
- the output stream for writing.trans
- the earth image transform for earth location metadata.compress
- the TIFF compression type.java.io.IOException
- if an error occurred writing to the output
stream.public void setDescription(java.lang.String description)
description
- the description of the image.public void setArtist(java.lang.String artist)
artist
- the person who created the image.public void setSoftware(java.lang.String software)
software
- the name and version number of the software package(s)
used to create the image.public void setComputer(java.lang.String computer)
computer
- the computer and/or operating system in use
at the time of image creation.public void encode(java.awt.image.RenderedImage image) throws java.io.IOException
image
- the image to write.java.io.IOException
- if an error occurred writing to the output
stream.