Class PNGOutputDevice
- java.lang.Object
-
- com.levigo.jadice.server.ghostscript.OutputDevice
-
- com.levigo.jadice.server.ghostscript.ImageOutputDevice
-
- com.levigo.jadice.server.ghostscript.PNGOutputDevice
-
- All Implemented Interfaces:
Serializable
public class PNGOutputDevice extends ImageOutputDevice
AnOutputDevice
generating PNG raster images.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PNGOutputDevice.PNGType
This enum determines the type of PNG that is generated.
-
Constructor Summary
Constructors Constructor Description PNGOutputDevice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillOptions(List<String> options)
Color
getBackgroundColor()
protected String
getGhostscriptOutputDeviceName()
String
getOutputMimeType()
PNGOutputDevice.PNGType
getType()
void
setBackgroundColor(Color backgroundColor)
Set the PNG background color.void
setType(PNGOutputDevice.PNGType type)
Set the type of PNG to generate.-
Methods inherited from class com.levigo.jadice.server.ghostscript.ImageOutputDevice
getGraphicsAlphaBits, getTextAlphaBits, getXResolution, getYResolution, setGraphicsAlphaBits, setResolution, setTextAlphaBits, setXResolution, setYResolution
-
-
-
-
Method Detail
-
getBackgroundColor
public Color getBackgroundColor()
- Returns:
- the PNG background color.
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
Set the PNG background color.- Parameters:
backgroundColor
- background color
-
getType
public PNGOutputDevice.PNGType getType()
- Returns:
- the type of PNG to generate.
-
setType
public void setType(PNGOutputDevice.PNGType type)
Set the type of PNG to generate.- Parameters:
type
- thePNG type
-
getGhostscriptOutputDeviceName
protected String getGhostscriptOutputDeviceName()
- Specified by:
getGhostscriptOutputDeviceName
in classOutputDevice
-
fillOptions
protected void fillOptions(List<String> options)
- Overrides:
fillOptions
in classImageOutputDevice
-
getOutputMimeType
public String getOutputMimeType()
- Specified by:
getOutputMimeType
in classOutputDevice
-
-