public class OutputFormat extends Object implements Cloneable
javax.imageio.ImageWriteParam
.
It's also exposing a simpler API, making it easier to configure through a tree/gui.Constructor and Description |
---|
OutputFormat() |
OutputFormat(String formatName,
boolean progressive,
int quality,
String compressionType) |
OutputFormat(String formatName,
boolean progressive,
int quality,
String compressionType,
boolean dynamicFormatType)
Deprecated.
since 2.1, implement
ImageGenerator.getOutputFormat(ParameterProvider) instead |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(ImageWriteParam param) |
OutputFormat |
clone() |
String |
getCompressionType() |
boolean |
getDynamicFormatType()
Deprecated.
since 2.1, implement
ImageGenerator.getOutputFormat(ParameterProvider) instead |
String |
getFormatName() |
int |
getQuality() |
boolean |
isProgressive() |
void |
setCompressionType(String compressionType) |
void |
setDynamicFormatType(boolean dynamicFormatType)
Deprecated.
since 2.1, implement
ImageGenerator.getOutputFormat(ParameterProvider) instead |
void |
setFormatName(String formatName) |
void |
setProgressive(boolean progressive) |
void |
setQuality(int quality) |
boolean |
supportsTransparency() |
public OutputFormat()
public OutputFormat(String formatName, boolean progressive, int quality, String compressionType)
public OutputFormat(String formatName, boolean progressive, int quality, String compressionType, boolean dynamicFormatType)
ImageGenerator.getOutputFormat(ParameterProvider)
insteadpublic void applyTo(ImageWriteParam param)
public boolean supportsTransparency()
public String getFormatName()
public void setFormatName(String formatName)
public boolean isProgressive()
public void setProgressive(boolean progressive)
public int getQuality()
public void setQuality(int quality)
public String getCompressionType()
public void setCompressionType(String compressionType)
public boolean getDynamicFormatType()
ImageGenerator.getOutputFormat(ParameterProvider)
insteadpublic void setDynamicFormatType(boolean dynamicFormatType)
ImageGenerator.getOutputFormat(ParameterProvider)
insteadpublic OutputFormat clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2015 Magnolia International Ltd.. All rights reserved.