Class HalftoneRegion

java.lang.Object
org.apache.pdfbox.jbig2.segments.HalftoneRegion
All Implemented Interfaces:
Region, SegmentData

public class HalftoneRegion extends Object implements Region
This class represents the data of segment type "Halftone region". Parsing is described in 7.4.5, page 67. Decoding procedure in 6.6.5 and 7.4.5.2.
  • Field Details

    • subInputStream

      private SubInputStream subInputStream
    • segmentHeader

      private SegmentHeader segmentHeader
    • dataHeaderOffset

      private long dataHeaderOffset
    • dataHeaderLength

      private long dataHeaderLength
    • dataOffset

      private long dataOffset
    • dataLength

      private long dataLength
    • regionInfo

      private RegionSegmentInformation regionInfo
      Region segment information field, 7.4.1
    • hDefaultPixel

      private byte hDefaultPixel
      Halftone segment information field, 7.4.5.1.1
    • hCombinationOperator

      private CombinationOperator hCombinationOperator
    • hSkipEnabled

      private boolean hSkipEnabled
    • hTemplate

      private byte hTemplate
    • isMMREncoded

      private boolean isMMREncoded
    • hGridWidth

      private int hGridWidth
      Width of the gray-scale image, 7.4.5.1.2.1
    • hGridHeight

      private int hGridHeight
      Height of the gray-scale image, 7.4.5.1.2.2
    • hGridX

      private int hGridX
      Horizontal offset of the grid, 7.4.5.1.2.3
    • hGridY

      private int hGridY
      Vertical offset of the grid, 7.4.5.1.2.4
    • hRegionX

      private int hRegionX
      Horizontal coordinate of the halftone grid vector, 7.4.5.1.3.1
    • hRegionY

      private int hRegionY
      Vertical coordinate of the halftone grod vector, 7.4.5.1.3.2
    • halftoneRegionBitmap

      private Bitmap halftoneRegionBitmap
      Decoded data
    • patterns

      private ArrayList<Bitmap> patterns
      Previously decoded data from other regions or dictionaries, stored to use as patterns in this region.
  • Constructor Details

    • HalftoneRegion

      public HalftoneRegion()
    • HalftoneRegion

      public HalftoneRegion(SubInputStream subInputStream)
    • HalftoneRegion

      public HalftoneRegion(SubInputStream subInputStream, SegmentHeader segmentHeader)
  • Method Details