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


IRasterCollection Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IRasterCollection Interface

Provides access to members that control a raster collection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Method Append Appends a raster to the end.
Method Empty Empties this raster collection.
Method Find Finds a given raster and returns its index position.
Method Get Gets the raster at a given index position.
Method Insert Inserts a raster at a given index.
Method Populate Populates this raster collection from associated RasterCatalog.
Read-only property RasterCount The number of rasters in this raster collection.
Method Remove Removes a raster at a given index.
Method Set Sets the raster at a given index position.

CoClasses that implement IRasterCollection

CoClasses and Classes Description
MosaicRaster A mosaic of rasters.

Remarks

The Remove and Empty method will remove the rasters from the MoaicRaster, it does not release the raster object from application. For .NET developers, to prevent the application from holding input rasters or the ouput raster, you must make explicitly call to release the references to the rasters or raster datasets being used:

    System.Runtime.InteropServices.Marshal.ReleaseComObject(inputRasterDS);

See Also

MosaicRaster Class

.NET Related Topics

DataSourcesRaster