SetPageTypeCompressionOpts Example VC++

This example demonstrates how to set up several predefined compressions for black and white, grayscale and color image types.

void CNewscanDlg::OnSetcompression() 
{
    ImgScan1.SetPageTypeCompressionOpts (3,1,2,512); //CustomSettings,
        BlackAndWhite1Bit, CCITTGroup42D, G42DFaxRBO;
    ImgScan1.SetPageTypeCompressionOpts (3,3,8,28898); //CustomSettings,
        Gray8Bit, JPEGCompression, JPEGHighHigh
    ImgScan1.SetPageTypeCompressionOpts (3,5,21,0); //CustomSettings,
        TrueColor24bitRGB, LZWCompression, LZWInfo
}