**Inheritance:**
java.lang.Object
```
public final class Blend
```

Defines a blend pattern for a [LinearGradientBrush](../../com.aspose.drawing.drawing2d/lineargradientbrush) object. This class cannot be inherited.
## Constructors

| Constructor | Description |
| --- | --- |
| [Blend()](#Blend--) | Initializes a new instance of the [Blend](../../com.aspose.drawing.drawing2d/blend) class. |
| [Blend(int count)](#Blend-int-) | Initializes a new instance of the [Blend](../../com.aspose.drawing.drawing2d/blend) class with the specified number of factors and positions. |
## Methods

| Method | Description |
| --- | --- |
| [getFactors()](#getFactors--) | Gets an array of blend factors for the gradient. |
| [setFactors(float[] value)](#setFactors-float---) | Sets an array of blend factors for the gradient. |
| [getPositions()](#getPositions--) | Gets an array of blend positions for the gradient. |
| [setPositions(float[] value)](#setPositions-float---) | Sets an array of blend positions for the gradient. |
### Blend() {#Blend--}
```
public Blend()
```


Initializes a new instance of the [Blend](../../com.aspose.drawing.drawing2d/blend) class.

### Blend(int count) {#Blend-int-}
```
public Blend(int count)
```


Initializes a new instance of the [Blend](../../com.aspose.drawing.drawing2d/blend) class with the specified number of factors and positions.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| count | int | The number of elements in the `Blend.Factors` and `Blend.Positions` arrays. |

### getFactors() {#getFactors--}
```
public float[] getFactors()
```


Gets an array of blend factors for the gradient.

**Returns:**
float[] - an array of blend factors for the gradient.
### setFactors(float[] value) {#setFactors-float---}
```
public void setFactors(float[] value)
```


Sets an array of blend factors for the gradient.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float[] | an array of blend factors for the gradient. |

### getPositions() {#getPositions--}
```
public float[] getPositions()
```


Gets an array of blend positions for the gradient.

**Returns:**
float[] - an array of blend positions for the gradient.
### setPositions(float[] value) {#setPositions-float---}
```
public void setPositions(float[] value)
```


Sets an array of blend positions for the gradient.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float[] | an array of blend positions for the gradient. |

