Class ImageOutputDevice
- java.lang.Object
-
- com.levigo.jadice.server.ghostscript.OutputDevice
-
- com.levigo.jadice.server.ghostscript.ImageOutputDevice
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BMPOutputDevice
,FAXOutputDevice
,JPEGOutputDevice
,PNGOutputDevice
,PNMOutputDevice
,TIFFOutputDevice
public abstract class ImageOutputDevice extends OutputDevice
This class subsumes all options shared byOutputDevice
s generating raster images.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageOutputDevice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillOptions(List<String> options)
int
getGraphicsAlphaBits()
int
getTextAlphaBits()
int
getXResolution()
int
getYResolution()
void
setGraphicsAlphaBits(int graphicsAlphaBits)
Set the number of bits used for graphics antialiasing.void
setResolution(int resolution)
Set both the horizontal and vertical output resolutions in dots per inch (DPI).void
setTextAlphaBits(int textAlphaBits)
Set the number of bits used for text antialiasing.void
setXResolution(int resolution)
Set the horizontal output resolution in dots per inch (DPI).void
setYResolution(int resolution)
Set the vertical output resolution in dots per inch (DPI).-
Methods inherited from class com.levigo.jadice.server.ghostscript.OutputDevice
getGhostscriptOutputDeviceName, getOutputMimeType
-
-
-
-
Method Detail
-
getXResolution
public int getXResolution()
- Returns:
- the horizontal output resolution in dots per inch (DPI).
-
setXResolution
public void setXResolution(int resolution)
Set the horizontal output resolution in dots per inch (DPI).- Parameters:
resolution
- horizontal output resolution
-
getYResolution
public int getYResolution()
- Returns:
- the vertical output resolution in dots per inch (DPI).
-
setYResolution
public void setYResolution(int resolution)
Set the vertical output resolution in dots per inch (DPI).- Parameters:
resolution
- vertical output resolution
-
setResolution
public void setResolution(int resolution)
Set both the horizontal and vertical output resolutions in dots per inch (DPI).- Parameters:
resolution
- horizontal and vertical output resolution
-
getTextAlphaBits
public int getTextAlphaBits()
- Returns:
- The number of bits used for text antialiasing.
-
setTextAlphaBits
public void setTextAlphaBits(int textAlphaBits)
Set the number of bits used for text antialiasing.- Parameters:
textAlphaBits
- number of bits used for text antialiasing.
-
getGraphicsAlphaBits
public int getGraphicsAlphaBits()
- Returns:
- the number of bits used for graphics antialiasing.
-
setGraphicsAlphaBits
public void setGraphicsAlphaBits(int graphicsAlphaBits)
Set the number of bits used for graphics antialiasing.- Parameters:
graphicsAlphaBits
- number of bits used for graphics antialiasing.
-
fillOptions
protected void fillOptions(List<String> options)
- Overrides:
fillOptions
in classOutputDevice
-
-