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
public IGeoDataset MakeConstant (
    double value,
    bool treatAsInteger
HRESULT MakeConstant(
  double value,
  VARIANT_BOOL treatAsInteger,
  IGeoDataset** outGeoDataset


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.



constant value to create output raster dataset from.


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