AutoTrim example for C++ Builder
This example trims the bitmap with threshold of 10.
void __fastcall TForm1::Button1Click(TObject *Sender)
{
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->AutoTrim (LEADRasterView1->Raster, 10);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release( );
}