AutoTrim example for C++ 5.0 and later
This example trims the bitmap with threshold of 10.
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->AutoTrim(m_LEADRasterView1.GetRaster(), 10);
m_LEADRasterView1.ForceRepaint();
pRasterProc->Release();