Class ImageContent

All Implemented Interfaces:
Streamable

public class ImageContent extends AbstractStructuredObject
An IOCA Image Content
  • Field Details

    • COMPID_G3_MH

      public static final byte COMPID_G3_MH
      The CCITT T.4 Group 3 Coding Standard (G3 MH-Modified Huffman) is a compression method standardized by the International Telegraph and Telephone Consultative Committee (CCITT) for facsimile. It enables one-dimensional compression.
      See Also:
    • COMPID_G3_MR

      public static final byte COMPID_G3_MR
      The CCITT T.4 Group 3 Coding Option (G3 MR-Modified READ) is a compression method standardized by the International Telegraph and Telephone Consultative Committee (CCITT) for facsimile. It enables two-dimensional compression.
      See Also:
    • COMPID_G3_MMR

      public static final byte COMPID_G3_MMR
      The CCITT T.6 Group 4 Coding Standard (G4 MMR-Modified Modified READ) is a compression method standardized by the International Telegraph and Telephone Consultative Committee (CCITT) for facsimile. It enables two-dimensional compression.
      See Also:
    • COMPID_JPEG

      public static final byte COMPID_JPEG
      JPEG algorithms (usually baseline DCT).
      See Also:
  • Constructor Details

    • ImageContent

      public ImageContent()
      Main Constructor
  • Method Details

    • setImageSizeParameter

      public void setImageSizeParameter(ImageSizeParameter imageSizeParameter)
      Sets the image size parameter
      Parameters:
      imageSizeParameter - the image size parameter.
    • setIDEStructureParameter

      public void setIDEStructureParameter(IDEStructureParameter parameter)
      Sets the IDE Structure parameter.
      Parameters:
      parameter - the IDE Structure parameter
    • getIDEStructureParameter

      public IDEStructureParameter getIDEStructureParameter()
      Returns the (optional) IDE Structure parameter
      Returns:
      the IDE Structure parameter or null if none is set
    • needIDEStructureParameter

      public IDEStructureParameter needIDEStructureParameter()
      Returns the (optional) IDE Structure parameter. If none is set an instance is prepared with defaults for a bi-level image.
      Returns:
      the IDE Structure parameter
    • setImageEncoding

      public void setImageEncoding(byte enc)
      Sets the image encoding.
      Parameters:
      enc - The image encoding.
    • setImageCompression

      public void setImageCompression(byte comp)
      Sets the image compression.
      Parameters:
      comp - The image compression.
    • setImageIDESize

      public void setImageIDESize(byte s)
      Sets the image IDE size.
      Parameters:
      s - The IDE size.
    • setImageIDEColorModel

      @Deprecated public void setImageIDEColorModel(byte color)
      Sets the image IDE color model.
      Parameters:
      color - the IDE color model.
    • setSubtractive

      @Deprecated public void setSubtractive(boolean subtractive)
      Set either additive or subtractive mode (used for ASFLAG).
      Parameters:
      subtractive - true for subtractive mode, false for additive mode
    • setImageData

      public void setImageData(byte[] imageData)
      Set the image data (can be byte array or inputstream)
      Parameters:
      imageData - the image data
    • setTransparencyMask

      public void setTransparencyMask(byte[] transparencyMask)
    • writeContent

      protected void writeContent(OutputStream os) throws IOException
      Helper method to write the contents of the Object.
      Overrides:
      writeContent in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - throws an I/O exception if one occurred
    • writeStart

      protected void writeStart(OutputStream os) throws IOException
      Helper method to write the start of the Object.
      Overrides:
      writeStart in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - throws an I/O exception if one occurred
    • writeEnd

      protected void writeEnd(OutputStream os) throws IOException
      Helper method to write the end of the Object.
      Overrides:
      writeEnd in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - an I/O exception if one occurred
    • setTileTOC

      public void setTileTOC(TileTOC toc)
    • addTile

      public void addTile(Tile tile)