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 VBA code examples shows both methods being used to acquire a reference of type IRasterCleanup to the Vectorization object.
Sub GetEditorExtensionByCLSID()
Dim pRastCln As IRasterCleanup
Dim pID As New UID
pID = "esriArcScan.RasterCleanup"
'or pID.Value = "{5E94138C-C8B7-42BD-8BA6-0F9DC3ACCE07}"
Set pRastCln = Application.FindExtensionByCLSID(pID)
End Sub
Sub GetEditorExtensionByName()
Dim pRastCln As IRasterCleanup
Set pRastCln = Application.FindExtensionByName("ESRI Raster Cleanup")
End Sub
When working with RasterCleanup's default outbound interface in Visual Basic 6 declare variables as follows: Private WithEvents pRasterCleanup as RasterCleanup