iTextSharp.text.ImgCCITT.ImgCCITT C# (CSharp) Метод

ImgCCITT() публичный Метод

Creats an Image in CCITT mode.
public ImgCCITT ( int width, int height, bool reverseBits, int typeCCITT, int parameters, byte data ) : System
width int the exact width of the image
height int the exact height of the image
reverseBits bool /// reverses the bits in data. /// Bit 0 is swapped with bit 7 and so on ///
typeCCITT int /// the type of compression in data. It can be /// CCITTG4, CCITTG31D, CCITTG32D ///
parameters int /// parameters associated with this stream. Possible values are /// CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFLINE and CCITT_ENDOFBLOCK or a /// combination of them ///
data byte the image data
Результат System
        public ImgCCITT(int width, int height, bool reverseBits, int typeCCITT, int parameters, byte[] data)
            : base((Uri)null)
        {
            if (typeCCITT != Element.CCITTG4 && typeCCITT != Element.CCITTG3_1D && typeCCITT != Element.CCITTG3_2D)
                throw new BadElementException(MessageLocalization.GetComposedMessage("the.ccitt.compression.type.must.be.ccittg4.ccittg3.1d.or.ccittg3.2d"));
            if (reverseBits)
                TIFFFaxDecoder.ReverseBits(data);
            type = Element.IMGRAW;
            scaledHeight = height;
            this.Top = scaledHeight;
            scaledWidth = width;
            this.Right = scaledWidth;
            colorspace = parameters;
            bpc = typeCCITT;
            rawData = data;
            plainWidth = this.Width;
            plainHeight = this.Height;
        }

Same methods

ImgCCITT::ImgCCITT ( Image image ) : System
ImgCCITT