public class PNMImageWriteParam extends ImageWriteParam
ImageWriteParam
for writing images in
the PNM format.
This class allows for the specification of whether to write in the ASCII or raw variants of the PBM, PGM, and PPM formats; by default, the raw variant is used.
canOffsetTiles, canWriteCompressed, canWriteProgressive, canWriteTiles, compressionMode, compressionQuality, compressionType, compressionTypes, locale, MODE_COPY_FROM_METADATA, MODE_DEFAULT, MODE_DISABLED, MODE_EXPLICIT, preferredTileSizes, progressiveMode, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, tilingMode, tilingSet
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset
Constructor and Description |
---|
PNMImageWriteParam()
Constructs a
PNMImageWriteParam object with default values
for parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
getRaw()
Returns the value of the
raw parameter. |
void |
setRaw(boolean raw)
Sets the representation to be used.
|
canOffsetTiles, canWriteCompressed, canWriteProgressive, canWriteTiles, getBitRate, getCompressionMode, getCompressionQuality, getCompressionQualityDescriptions, getCompressionQualityValues, getCompressionType, getCompressionTypes, getLocale, getLocalizedCompressionTypeName, getPreferredTileSizes, getProgressiveMode, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTilingMode, isCompressionLossless, setCompressionMode, setCompressionQuality, setCompressionType, setProgressiveMode, setTiling, setTilingMode, unsetCompression, unsetTiling
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setDestinationType, setSourceBands, setSourceRegion, setSourceSubsampling
public PNMImageWriteParam()
PNMImageWriteParam
object with default values
for parameters.public void setRaw(boolean raw)
raw
parameter is true
, the raw representation will be used;
otherwise the ASCII representation will be used.raw
- true
if raw format is to be used.getRaw()
public boolean getRaw()
raw
parameter. The default
value is true
.setRaw(boolean)
Copyright © 2015–2022 SCIFIO. All rights reserved.