ArcObjects Library Reference (GeoDatabase)  

IRasterDataset.CreateDefaultRaster Method

Creates a raster object with the default properties for this dataset.

[Visual Basic .NET]
Public Function CreateDefaultRaster ( _
) As IRaster
[C#]
public IRaster CreateDefaultRaster (
);
[C++]
HRESULT CreateDefaultRaster(
  IRaster** ras
);
[C++]

Parameters

ras [out, retval]

  ras is a parameter of type IRaster

Product Availability

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

Remarks

The CreateDefaultRaster method creates a Raster that has a square cell size and contains only three raster bands if the dataset has more than three bands. The three bands are the default bands used in raster RGB renderer and are determined by the settings for default raster behavior made on the RasterDefaultsEnv object in esriCarto library.

See Also

IRasterDataset Interface

.NET Samples

Create a custom raster type (Code Files: ThumbnailBuilder)

.NET Related Topics

DataSourcesRaster | Executing a map algebra expression | Handling multiband output | How to create a raster classify renderer | How to georeference a raster using polynomial transformation | How to orthorectify an image | How to split a raster dataset into multiple tiles