Package it.tidalwave.image.op
Class WriteOp
- java.lang.Object
-
- it.tidalwave.image.op.Operation
-
- it.tidalwave.image.op.WriteOp
-
public class WriteOp extends Operation
- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description WriteOp(java.lang.String format, java.lang.Object output)
Writes the image to a File or a OutputStream.WriteOp(java.lang.String format, java.lang.Object output, javax.imageio.ImageWriteParam imageWriteParam)
Writes the image to a File or a OutputStream.WriteOp(java.lang.String format, java.lang.Object output, javax.imageio.ImageWriteParam imageWriteParam, javax.imageio.metadata.IIOMetadata iioMetadata)
WriteOp(java.lang.String format, java.lang.String fileName)
Writes the image to a file.WriteOp(java.lang.String format, java.lang.String fileName, javax.imageio.ImageWriteParam imageWriteParam)
Writes the image to a file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFormat()
javax.imageio.metadata.IIOMetadata
getIIOMetadata()
Please note that this method is unsupported.javax.imageio.ImageWriteParam
getImageWriteParam()
java.lang.Object
getOutput()
java.lang.String
toString()
-
-
-
Constructor Detail
-
WriteOp
public WriteOp(java.lang.String format, java.lang.String fileName)
Writes the image to a file.- Parameters:
format
- the image formatfileName
- the file name
-
WriteOp
public WriteOp(java.lang.String format, java.lang.String fileName, javax.imageio.ImageWriteParam imageWriteParam)
Writes the image to a file.- Parameters:
format
- the image formatfileName
- the file nameimageWriteParam
- the write parameters
-
WriteOp
public WriteOp(java.lang.String format, java.lang.Object output)
Writes the image to a File or a OutputStream. In the latter case, note that the OutputStream is not closed.- Parameters:
format
- the image formatoutput
- the output object
-
WriteOp
public WriteOp(java.lang.String format, java.lang.Object output, javax.imageio.ImageWriteParam imageWriteParam)
Writes the image to a File or a OutputStream. In the latter case, note that the OutputStream is not closed.- Parameters:
format
- the image formatoutput
- the output objectimageWriteParam
- the write parameters
-
WriteOp
public WriteOp(java.lang.String format, java.lang.Object output, javax.imageio.ImageWriteParam imageWriteParam, javax.imageio.metadata.IIOMetadata iioMetadata)
-
-
Method Detail
-
getFormat
public java.lang.String getFormat()
-
getOutput
public java.lang.Object getOutput()
-
getImageWriteParam
public javax.imageio.ImageWriteParam getImageWriteParam()
-
getIIOMetadata
public javax.imageio.metadata.IIOMetadata getIIOMetadata()
Please note that this method is unsupported.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-