This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcScan > ESRI.ArcGIS.ArcScan > Classes > R > RasterCleanup Class (ArcObjects .NET 10.5 SDK) |
The Raster Cleanup Extension.
RasterCleanup is a non-creatable object. References to non-creatable objects must be obtained through other objects.
Interfaces | Description |
---|---|
IExtension (esriSystem) | Provides access to members that define an extension. |
IRasterCleanup | Provides access to members that control raster cleanup. |
Interfaces | Description |
---|---|
IRasterCleanupEvents (default) | 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;
}
When working with RasterCleanup's default outbound interface in Visual Basic 6 declare variables as follows:
Private WithEvents pRasterCleanup as RasterCleanup