LZWAutoClear example for Visual C++
ILEADRasterIO * pRasterIO = NULL;
int nRet = 0;
HRESULT hr = CoCreateInstance(
CLSID_LEADRasterIO,
NULL,
CLSCTX_ALL,
IID_ILEADRasterIO,
(void**)&pRasterIO
);
nRet = pRasterIO->Load(m_RasterView.GetRaster(), TEXT("c:\\parrots.jpg"), 0, 0, 1);
pRasterIO->LZWAutoClear = FALSE;
pRasterIO->Save(m_RasterView.GetRaster(), TEXT("c:\\1.tif"), FILE_TIFLZW, 24, QFACTOR_LEAD_0, 0);
pRasterIO->Release();