This document is archived and information here might be outdated.  Recommended version.


RasterCleanup Class (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (ArcScan)  

RasterCleanup Class

The Raster Cleanup Extension.

RasterCleanup is a non-creatable object. References to non-creatable objects must be obtained through other objects.

Product Availability

Available with ArcGIS Desktop. Requires ArcScan Extension.

Supported Platforms

Windows

Interfaces

Interfaces Description
IExtension (esriSystem) Provides access to members that define an extension.
IRasterCleanup Provides access to members that control raster cleanup.

Event Interfaces

Interfaces Description
IRasterCleanupEvents (default) Provides access to raster cleanup events. Implement it to listen for specific events that occur during a raster cleanup session.

Remarks

The RasterCleanup object maintains the raster cleanup session in ArcScan.

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.

[C#]

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;
}

Working with Events

[Visual Basic 6.0]

When working with RasterCleanup's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pRasterCleanup as RasterCleanup