com.lowagie.text
Class ImgCCITT

java.lang.Object
  extended bycom.lowagie.text.Rectangle
      extended bycom.lowagie.text.Image
          extended bycom.lowagie.text.ImgCCITT
All Implemented Interfaces:
Element, MarkupAttributes

public class ImgCCITT
extends Image
implements Element

CCITT Image data that has to be inserted into the document

Author:
Paulo Soares
See Also:
Element, Image

Field Summary
(package private) static byte[] bitReversal
          A table to do fast bit reversal.
 
Fields inherited from class com.lowagie.text.Image
absoluteX, absoluteY, alignment, alt, annotation, AX, AY, bpc, BX, BY, colorspace, CX, CY, DEFAULT, deflated, dpiX, dpiY, DX, DY, imageMask, indentationLeft, indentationRight, interpolation, invert, layer, LEFT, markupAttributes, mask, MIDDLE, mySerialId, ORIGINAL_BMP, ORIGINAL_GIF, ORIGINAL_JPEG, ORIGINAL_NONE, ORIGINAL_PNG, ORIGINAL_PS, ORIGINAL_TIFF, ORIGINAL_WMF, originalData, originalType, plainHeight, plainWidth, profile, rawData, RIGHT, rotation, scaledHeight, scaledWidth, serialId, spacingAfter, spacingBefore, template, TEXTWRAP, transparency, type, UNDERLYING, url
 
Fields inherited from class com.lowagie.text.Rectangle
background, border, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, color, grayFill, llx, lly, NO_BORDER, TOP, UNDEFINED, urx, ury, useVariableBorders
 
Fields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
 
Constructor Summary
(package private) ImgCCITT(Image image)
           
  ImgCCITT(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data)
          Creates an Image with CCITT compression.
 
Method Summary
static void ReverseBits(byte[] data)
          Reverses the bits in the array.
 
Methods inherited from class com.lowagie.text.Image
absoluteX, absoluteY, alignment, alt, annotation, bpc, colorspace, getAdditional, getDpiX, getDpiY, getICCProfile, getImageMask, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getLayer, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getMySerialId, getOriginalData, getOriginalType, getSerialId, getTransparency, getWidthPercentage, getXYRatio, hasAbsolutePosition, hasAbsoluteX, hasICCProfile, indentationLeft, indentationRight, isDeflated, isImgRaw, isImgTemplate, isInterpolation, isInverted, isInvertMask, isJpeg, isMask, isMaskCandidate, isSmask, isTag, makeMask, matrix, plainHeight, plainWidth, rawData, scaleAbsolute, scaleAbsoluteHeight, scaleAbsoluteWidth, scaledHeight, scaledWidth, scalePercent, scalePercent, scaleToFit, setAbsolutePosition, setAdditional, setAlignment, setAlt, setAnnotation, setDeflated, setDpi, setImageMask, setIndentationLeft, setIndentationRight, setInterpolation, setInverted, setInvertMask, setLayer, setMarkupAttribute, setMarkupAttributes, setOriginalData, setOriginalType, setRotation, setRotationDegrees, setSmask, setSpacingAfter, setSpacingBefore, setTemplateData, setTransparency, setUrl, setWidthPercentage, setXYRatio, skip, spacingAfter, spacingBefore, tagICC, templateData, toURL, type, url
 
Methods inherited from class com.lowagie.text.Rectangle
backgroundColor, border, borderColor, borderWidth, bottom, bottom, cloneNonPositionParameters, disableBorderSide, enableBorderSide, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getChunks, getRotation, grayFill, hasBorder, hasBorders, height, isUseVariableBorders, left, left, normalize, process, rectangle, right, right, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setRight, setTop, setUseVariableBorders, top, top, width
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.Element
getChunks, process, toString, type
 

Field Detail

bitReversal

static final byte[] bitReversal
A table to do fast bit reversal.

Constructor Detail

ImgCCITT

ImgCCITT(Image image)

ImgCCITT

public ImgCCITT(int width,
                int height,
                boolean reverseBits,
                int typeCCITT,
                int parameters,
                byte[] data)
         throws BadElementException
Creates an Image with CCITT compression.

Parameters:
width - the exact width of the image
height - the exact height of the image
reverseBits - reverses the bits in data. Bit 0 is swapped with bit 7 and so on
typeCCITT - the type of compression in data. It can be CCITTG4, CCITTG31D, CCITTG32D
parameters - parameters associated with this stream. Possible values are CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFLINE and CCITT_ENDOFBLOCK or a combination of them
data - the image data
Throws:
BadElementException - on error
Method Detail

ReverseBits

public static void ReverseBits(byte[] data)
Reverses the bits in the array.

Parameters:
data - data to reverse bits