Save (ILEADRasterMrc) example for C++ 5.0 and later
m_pRasterMrc->MaskCoder = MRC_MASK_COMPRESSION_JBIG;
m_pRasterMrc->PictureCoder
= MRC_PICTURE_COMPRESSION_JPEG;
m_pRasterMrc->PictureQFactor
= 2;
m_pRasterMrc->Grayscale2BitCoder
= MRC_GRAYSCALE_COMPRESSION_JBIG_2BIT;
m_pRasterMrc->Grayscale8BitCoder
= MRC_GRAYSCALE_COMPRESSION_GRAYSCALE_JPEG_8BIT;
m_pRasterMrc->Grayscale8BitQFactor
= 2;
m_pRasterMrc->Text2BitCoder
= MRC_TEXT_COMPRESSION_JBIG_2BIT;
m_pRasterMrc->Save(m_RasterView.GetRaster(),
"c:\\test.mrc", FILE_LEAD_MRC, 0, SAVE_OVERWRITE);
m_pRasterMrc->SaveT44(m_RasterView.GetRaster(),
"c:\\testT44.mrc", FILE_MRC, 0, SAVE_OVERWRITE);