**Inheritance:**
java.lang.Object
```
public class CmxGradient
```

Represents a gradient info.
## Constructors

| Constructor | Description |
| --- | --- |
| [CmxGradient()](#CmxGradient--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getAngle()](#getAngle--) | Gets the angle. |
| [setAngle(float value)](#setAngle-float-) | Sets the angle. |
| [getCenterXOffset()](#getCenterXOffset--) | Gets the center x offset. |
| [setCenterXOffset(long value)](#setCenterXOffset-long-) | Sets the center x offset. |
| [getCenterYOffset()](#getCenterYOffset--) | Gets the center y offset. |
| [setCenterYOffset(long value)](#setCenterYOffset-long-) | Sets the center y offset. |
| [getColors()](#getColors--) | Gets the colors. |
| [setColors(CmxColor[] value)](#setColors-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxColor---) | Sets the colors. |
| [getEdgeOffset()](#getEdgeOffset--) | Gets the edge offset. |
| [setEdgeOffset(int value)](#setEdgeOffset-int-) | Sets the edge offset. |
| [getMode()](#getMode--) | Gets the mode. |
| [setMode(int value)](#setMode-int-) | Sets the mode. |
| [getOffsets()](#getOffsets--) | Gets the offsets. |
| [setOffsets(float[] value)](#setOffsets-float---) | Sets the offsets. |
| [getRateMethod()](#getRateMethod--) | Gets the rate method. |
| [setRateMethod(int value)](#setRateMethod-int-) | Sets the rate method. |
| [getRateValue()](#getRateValue--) | Gets the rate value. |
| [setRateValue(int value)](#setRateValue-int-) | Sets the rate value. |
| [getScreen()](#getScreen--) | Gets the screen. |
| [setScreen(int value)](#setScreen-int-) | Sets the screen. |
| [getSteps()](#getSteps--) | Gets the steps. |
| [setSteps(int value)](#setSteps-int-) | Sets the steps. |
| [getType()](#getType--) | Gets the type. |
| [setType(int value)](#setType-int-) | Sets the type. |
| [toString()](#toString--) | Returns a String that represents this instance. |
| [equals(Object o)](#equals-java.lang.Object-) |  |
| [hashCode()](#hashCode--) |  |
### CmxGradient() {#CmxGradient--}
```
public CmxGradient()
```


### getAngle() {#getAngle--}
```
public final float getAngle()
```


Gets the angle.

**Returns:**
float - the angle.
### setAngle(float value) {#setAngle-float-}
```
public final void setAngle(float value)
```


Sets the angle.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float | the angle. |

### getCenterXOffset() {#getCenterXOffset--}
```
public final long getCenterXOffset()
```


Gets the center x offset.

**Returns:**
long - the center x offset.
### setCenterXOffset(long value) {#setCenterXOffset-long-}
```
public final void setCenterXOffset(long value)
```


Sets the center x offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | long | the center x offset. |

### getCenterYOffset() {#getCenterYOffset--}
```
public final long getCenterYOffset()
```


Gets the center y offset.

**Returns:**
long - the center y offset.
### setCenterYOffset(long value) {#setCenterYOffset-long-}
```
public final void setCenterYOffset(long value)
```


Sets the center y offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | long | the center y offset. |

### getColors() {#getColors--}
```
public final CmxColor[] getColors()
```


Gets the colors.

**Returns:**
com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxColor[] - the colors.
### setColors(CmxColor[] value) {#setColors-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxColor---}
```
public final void setColors(CmxColor[] value)
```


Sets the colors.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CmxColor\[\]](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxcolor) | the colors. |

### getEdgeOffset() {#getEdgeOffset--}
```
public final int getEdgeOffset()
```


Gets the edge offset.

**Returns:**
int - the edge offset.
### setEdgeOffset(int value) {#setEdgeOffset-int-}
```
public final void setEdgeOffset(int value)
```


Sets the edge offset.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the edge offset. |

### getMode() {#getMode--}
```
public final int getMode()
```


Gets the mode.

**Returns:**
int - the mode.
### setMode(int value) {#setMode-int-}
```
public final void setMode(int value)
```


Sets the mode.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the mode. |

### getOffsets() {#getOffsets--}
```
public final float[] getOffsets()
```


Gets the offsets.

**Returns:**
float[] - the offsets.
### setOffsets(float[] value) {#setOffsets-float---}
```
public final void setOffsets(float[] value)
```


Sets the offsets.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float[] | the offsets. |

### getRateMethod() {#getRateMethod--}
```
public final int getRateMethod()
```


Gets the rate method.

**Returns:**
int - the rate method.
### setRateMethod(int value) {#setRateMethod-int-}
```
public final void setRateMethod(int value)
```


Sets the rate method.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the rate method. |

### getRateValue() {#getRateValue--}
```
public final int getRateValue()
```


Gets the rate value.

**Returns:**
int - the rate value.
### setRateValue(int value) {#setRateValue-int-}
```
public final void setRateValue(int value)
```


Sets the rate value.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the rate value. |

### getScreen() {#getScreen--}
```
public final int getScreen()
```


Gets the screen.

**Returns:**
int - the screen.
### setScreen(int value) {#setScreen-int-}
```
public final void setScreen(int value)
```


Sets the screen.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the screen. |

### getSteps() {#getSteps--}
```
public final int getSteps()
```


Gets the steps.

**Returns:**
int - the steps.
### setSteps(int value) {#setSteps-int-}
```
public final void setSteps(int value)
```


Sets the steps.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the steps. |

### getType() {#getType--}
```
public final int getType()
```


Gets the type.

**Returns:**
int - the type.
### setType(int value) {#setType-int-}
```
public final void setType(int value)
```


Sets the type.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the type. |

### toString() {#toString--}
```
public String toString()
```


Returns a String that represents this instance.

**Returns:**
java.lang.String - A String that represents this instance.
### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object |  |

**Returns:**
boolean
### hashCode() {#hashCode--}
```
public int hashCode()
```




**Returns:**
int
