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


RasterCleanup CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcScan > ESRI.ArcGIS.ArcScan > Classes > R > RasterCleanup CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (ArcScan)  

RasterCleanup CoClass

The Raster Cleanup Extension.

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