---
title: "NoiseGradient"
url: "https://reference.aspose.com/psd/java/com.aspose.psd.fileformats.psd.layers.fillsettings/noisegradient/"
product: "Aspose.PSD for Java API Reference"
description: "Noise gradient definition class."
---


**Inheritance:**
java.lang.Object, [com.aspose.psd.fileformats.psd.layers.gradient.BaseGradient](../../com.aspose.psd.fileformats.psd.layers.gradient/basegradient)
```
public class NoiseGradient extends BaseGradient
```

Noise gradient definition class.
## Constructors

| Constructor | Description |
| --- | --- |
| [NoiseGradient()](#NoiseGradient--) | Initializes a new instance of the [NoiseGradient](../../com.aspose.psd.fileformats.psd.layers.fillsettings/noisegradient) class. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getColorModel()](#getColorModel--) | Gets or sets the Color Model - RGB/HSB/LAB (3/4/6). |
| [getExpansionCount()](#getExpansionCount--) | Gets or sets the Expansion count ( = 2 for Photoshop 6.0). |
| [getGradientMode()](#getGradientMode--) | Gets the mode for this gradient. |
| [getGradientName()](#getGradientName--) | Gets or sets the name of the gradient. |
| [getMaximumColor()](#getMaximumColor--) | Gets or sets the Maximum color of PixelDataFormat. |
| [getMinimumColor()](#getMinimumColor--) | Gets or sets the Minimum color of PixelDataFormat. |
| [getRndNumberSeed()](#getRndNumberSeed--) | Gets or sets the random number seed used to generate colors for Noise gradient |
| [getRoughness()](#getRoughness--) | Gets or sets the Roughness factor. |
| [getShowTransparency()](#getShowTransparency--) | Gets or sets the flag for showing transparency. |
| [getUseVectorColor()](#getUseVectorColor--) | Gets or sets the flag for using vector color. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setColorModel(short value)](#setColorModel-short-) | Gets or sets the Color Model - RGB/HSB/LAB (3/4/6). |
| [setExpansionCount(short value)](#setExpansionCount-short-) | Gets or sets the Expansion count ( = 2 for Photoshop 6.0). |
| [setGradientName(String value)](#setGradientName-java.lang.String-) | Gets or sets the name of the gradient. |
| [setMaximumColor(RawColor value)](#setMaximumColor-com.aspose.psd.fileformats.psd.rawcolor.RawColor-) | Gets or sets the Maximum color of PixelDataFormat. |
| [setMinimumColor(RawColor value)](#setMinimumColor-com.aspose.psd.fileformats.psd.rawcolor.RawColor-) | Gets or sets the Minimum color of PixelDataFormat. |
| [setRndNumberSeed(int value)](#setRndNumberSeed-int-) | Gets or sets the random number seed used to generate colors for Noise gradient |
| [setRoughness(int value)](#setRoughness-int-) | Gets or sets the Roughness factor. |
| [setShowTransparency(boolean value)](#setShowTransparency-boolean-) | Gets or sets the flag for showing transparency. |
| [setUseVectorColor(boolean value)](#setUseVectorColor-boolean-) | Gets or sets the flag for using vector color. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### NoiseGradient() {#NoiseGradient--}
```
public NoiseGradient()
```


Initializes a new instance of the [NoiseGradient](../../com.aspose.psd.fileformats.psd.layers.fillsettings/noisegradient) class.

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




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

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getColorModel() {#getColorModel--}
```
public final short getColorModel()
```


Gets or sets the Color Model - RGB/HSB/LAB (3/4/6).

**Returns:**
short
### getExpansionCount() {#getExpansionCount--}
```
public final short getExpansionCount()
```


Gets or sets the Expansion count ( = 2 for Photoshop 6.0).

**Returns:**
short
### getGradientMode() {#getGradientMode--}
```
public int getGradientMode()
```


Gets the mode for this gradient. Determines 'Gradient Type' = 'Solid/Noise' (0/1).

**Returns:**
int
### getGradientName() {#getGradientName--}
```
public final String getGradientName()
```


Gets or sets the name of the gradient.

Value: The name of the gradient.

**Returns:**
java.lang.String
### getMaximumColor() {#getMaximumColor--}
```
public final RawColor getMaximumColor()
```


Gets or sets the Maximum color of PixelDataFormat.

**Returns:**
[RawColor](../../com.aspose.psd.fileformats.psd.rawcolor/rawcolor)
### getMinimumColor() {#getMinimumColor--}
```
public final RawColor getMinimumColor()
```


Gets or sets the Minimum color of PixelDataFormat.

**Returns:**
[RawColor](../../com.aspose.psd.fileformats.psd.rawcolor/rawcolor)
### getRndNumberSeed() {#getRndNumberSeed--}
```
public final int getRndNumberSeed()
```


Gets or sets the random number seed used to generate colors for Noise gradient

**Returns:**
int
### getRoughness() {#getRoughness--}
```
public final int getRoughness()
```


Gets or sets the Roughness factor.

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


Gets or sets the flag for showing transparency.

**Returns:**
boolean
### getUseVectorColor() {#getUseVectorColor--}
```
public final boolean getUseVectorColor()
```


Gets or sets the flag for using vector color.

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




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setColorModel(short value) {#setColorModel-short-}
```
public final void setColorModel(short value)
```


Gets or sets the Color Model - RGB/HSB/LAB (3/4/6).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | short |  |

### setExpansionCount(short value) {#setExpansionCount-short-}
```
public final void setExpansionCount(short value)
```


Gets or sets the Expansion count ( = 2 for Photoshop 6.0).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | short |  |

### setGradientName(String value) {#setGradientName-java.lang.String-}
```
public final void setGradientName(String value)
```


Gets or sets the name of the gradient.

Value: The name of the gradient.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setMaximumColor(RawColor value) {#setMaximumColor-com.aspose.psd.fileformats.psd.rawcolor.RawColor-}
```
public final void setMaximumColor(RawColor value)
```


Gets or sets the Maximum color of PixelDataFormat.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RawColor](../../com.aspose.psd.fileformats.psd.rawcolor/rawcolor) |  |

### setMinimumColor(RawColor value) {#setMinimumColor-com.aspose.psd.fileformats.psd.rawcolor.RawColor-}
```
public final void setMinimumColor(RawColor value)
```


Gets or sets the Minimum color of PixelDataFormat.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RawColor](../../com.aspose.psd.fileformats.psd.rawcolor/rawcolor) |  |

### setRndNumberSeed(int value) {#setRndNumberSeed-int-}
```
public final void setRndNumberSeed(int value)
```


Gets or sets the random number seed used to generate colors for Noise gradient

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setRoughness(int value) {#setRoughness-int-}
```
public final void setRoughness(int value)
```


Gets or sets the Roughness factor.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setShowTransparency(boolean value) {#setShowTransparency-boolean-}
```
public final void setShowTransparency(boolean value)
```


Gets or sets the flag for showing transparency.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setUseVectorColor(boolean value) {#setUseVectorColor-boolean-}
```
public final void setUseVectorColor(boolean value)
```


Gets or sets the flag for using vector color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

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




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

