ArcObjects Library Reference (GeoAnalyst)  

IRasterMakerOp.MakeConstant Method

Makes a constant raster.

[Visual Basic .NET]
Public Function MakeConstant ( _
    ByVal value As Double, _
    ByVal treatAsInteger As Boolean _
) As IGeoDataset
[C#]
public IGeoDataset MakeConstant (
    double value,
    bool treatAsInteger
);
[C++]
HRESULT MakeConstant(
  double value,
  VARIANT_BOOL treatAsInteger,
  IGeoDataset** outGeoDataset
);
[C++]

Parameters

value [in]   value is a parameter of type double treatAsInteger [in]   treatAsInteger is a parameter of type VARIANT_BOOL outGeoDataset [out, retval]

  outGeoDataset is a parameter of type IGeoDataset

Product Availability

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

Remarks

value

constant value to create output raster dataset from.

treatAsInteger

a boolean specifying the data type of the output raster dataset.

If TRUE,  an integer raster will be created.

If FALSE, a floating-point raster will be created

See Also

IRasterMakerOp Interface

.NET Related Topics

Working with the analysis environment