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


IRasterDataset2.CreateRaster Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRasterDataset2.CreateRaster Method

Creates an empty raster.

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

Parameters Raster [out, retval]
Raster is a parameter of type IRaster

Product Availability

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

Remarks

An empty raster means that properties of the Raster are not defined. The width, height, and the number of bands of the raster are all 0. It can not be used before populating pixels to it.

See Also

IRasterDataset2 Interface