iTextSharp.text.pdf.codec.CCITTG4Encoder.Compress C# (CSharp) Method

Compress() public static method

public static Compress ( byte data, int width, int height ) : byte[]
data byte
width int
height int
return byte[]
        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();
        }