# BlendOperation

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/BlendOperation.kt+class:androidx.webgpu.BlendOperation) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
public final class BlendOperation
```

<br />

*** ** * ** ***

Defines the operation to perform when blending color values.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendOperation#Add() = 1` The result is the sum of the source and destination. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendOperation#Max() = 5` The result is the maximum of the source and destination. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendOperation#Min() = 4` The result is the minimum of the source and destination. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendOperation#ReverseSubtract() = 3` The result is the source subtracted from the destination. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendOperation#Subtract() = 2` The result is the destination subtracted from the source. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/BlendOperation#Undefined() = 0` Indicates that no blend operation is specified. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/BlendOperation#toString(kotlin.Int)(int value)` |

## Constants

### Add

```
public static final int Add = 1
```

The result is the sum of the source and destination.

### Max

```
public static final int Max = 5
```

The result is the maximum of the source and destination.

### Min

```
public static final int Min = 4
```

The result is the minimum of the source and destination.

### ReverseSubtract

```
public static final int ReverseSubtract = 3
```

The result is the source subtracted from the destination.

### Subtract

```
public static final int Subtract = 2
```

The result is the destination subtracted from the source.

### Undefined

```
public static final int Undefined = 0
```

Indicates that no blend operation is specified.

## Public methods

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static final @NonNull String toString(int value)
```