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


IRasterDataset2.CreateRaster Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRasterDataset2 Interface > IRasterDataset2.CreateRaster Method
ArcGIS Developer Help

IRasterDataset2.CreateRaster Method

Creates an empty raster.

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

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