Show / Hide Table of Contents

Method Subtract

Subtract(int)

Composes a function that subtracts, point-wise, a value from this function's field result across its extent.

Declaration
public DiscreteFieldFunction Subtract(int value)
Parameters
Type Name Description
int value

The value to subtract across the field.

Returns
Type Description
DiscreteFieldFunction

A function that subtracts a value from this function's field result.

Remarks

The result has no value where this field has no value.

The result extent equals that of this field.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300

Subtract(DiscreteFieldFunction)

Composes a function that subtracts, point-wise, another field from this function's field result across their spatial intersection.

Declaration
public DiscreteFieldFunction Subtract(DiscreteFieldFunction otherField)
Parameters
Type Name Description
DiscreteFieldFunction otherField

Another integer scalar field.

Returns
Type Description
DiscreteFieldFunction

A function that subtracts another field from this function's field result.

Remarks

The result has no value where either of the given fields has no value.

The result extent is the intersection of the extents of the given fields.

The spatial reference of both fields must be equivalent.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.