Class PNMImageWriteParam

java.lang.Object
javax.imageio.IIOParam
javax.imageio.ImageWriteParam
com.github.jaiimageio.plugins.pnm.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.

  • Field Details

    • raw

      private boolean raw
  • Constructor Details

    • PNMImageWriteParam

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

    • 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

      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: