This document is archived and information here might be outdated. Recommended version. |
The Raster Cleanup Extension.
Interfaces | Description |
---|---|
IExtension (esriSystem) | Provides access to members that define an extension. |
IRasterCleanup | Provides access to members that control raster cleanup. |
IRasterCleanupEvents | Provides access to raster cleanup events. Implement it to listen for specific events that occur during a raster cleanup session. |
To get a reference to the rastercleanup extension, use IApplication::FindExtensionByCLSID or IApplication::FindExtensionByName.
When working with the ArcScan object model, remember to reference the ESRI ArcScan Extension Object Library in your development environment.
The following code examples shows both methods being used to acquire a reference of type IRasterCleanup to the Vectorization object.
public void GetRasterCleanupByCLSID()
{
UID extUid=new UIDClass();
extUid.Value="esriArcScan.Vectorization";
//Or extUid.Value="{A212F759-F155-4BAF-A692-B9268CF9A465}";
//You can get app from ICommand :: OnCreate() hook parameter
IRasterCleanup rasterCleanup=app.FindExtensionByCLSID(extUid) as IRasterCleanup;
}
public void GetRasterCleanupByName()
{
//You can get app from ICommand :: OnCreate() hook parameter
IRasterCleanup rasterCleanup=app.FindExtensionByName("ESRI ArcScan Tools") as IRasterCleanup;
}