|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.imaging.OutputFormat
public class OutputFormat
A simple bean holding image formatName output configuration. This is used to get the appropriate
ImageWriter and applied to its underlying javax.imageio.ImageWriteParam
.
It's also exposing a simpler API, making it easier to configure through a tree/gui.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
instead
Method Detail |
---|
public 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)
instead
public void setDynamicFormatType(boolean dynamicFormatType)
ImageGenerator.getOutputFormat(ParameterProvider)
instead
public OutputFormat clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |