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


IRasterMakerOp.MakeConstant Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeoAnalyst > ESRI.ArcGIS.GeoAnalyst > Interfaces > IR > IRasterMakerOp Interface > IRasterMakerOp.MakeConstant Method
ArcGIS Developer Help

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
);
[C++]
Parameters
value [in]

value is a parameter of type double treatAsInteger [in]
treatAsInteger is a parameter of type bool

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