iTextSharp.text.pdf.codec.CCITTG4Encoder.Fax4Encode C# (CSharp) Метод

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

public Fax4Encode ( byte data, int height ) : void
data byte
height int
Результат void
        public void Fax4Encode(byte[] data, int height)
        {
            Fax4Encode(data, 0, rowbytes * height);
        }

Same methods

CCITTG4Encoder::Fax4Encode ( byte data, int offset, int size ) : void

Usage Example

Пример #1
0
        /**
         * Encodes a full image.
         * @param data the data to encode
         * @param width the image width
         * @param height the image height
         * @return the encoded image
         */
        public static byte[] Compress(byte[] data, int width, int height)
        {
            CCITTG4Encoder g4 = new CCITTG4Encoder(width);

            g4.Fax4Encode(data, 0, g4.rowbytes * height);
            return(g4.Close());
        }
All Usage Examples Of iTextSharp.text.pdf.codec.CCITTG4Encoder::Fax4Encode