com.sun.media.imageio.plugins.pnm

Class PNMImageWriteParam

public class PNMImageWriteParam extends ImageWriteParam

A subclass of 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.

Constructor Summary
PNMImageWriteParam()
Constructs a PNMImageWriteParam object with default values for parameters.
Method Summary
booleangetRaw()
Returns the value of the raw parameter.
voidsetRaw(boolean raw)
Sets the representation to be used.

Constructor Detail

PNMImageWriteParam

public PNMImageWriteParam()
Constructs a PNMImageWriteParam object with default values for parameters.

Method Detail

getRaw

public boolean getRaw()
Returns the value of the raw parameter. The default value is true.

Returns: whether the data are written in raw representation.

See Also: PNMImageWriteParam

setRaw

public void setRaw(boolean raw)
Sets the representation to be used. If the raw parameter is true, the raw representation will be used; otherwise the ASCII representation will be used.

Parameters: raw true if raw format is to be used.

See Also: getRaw