---
title: "GlobalLayerMaskInfo"
url: "https://reference.aspose.com/psd/java/com.aspose.psd.fileformats.psd.layers/globallayermaskinfo/"
product: "Aspose.PSD for Java API Reference"
description: "The global layer mask section."
---


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

The global layer mask section.
## Constructors

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

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getAlphaMask()](#getAlphaMask--) | Gets or sets the alpha mask. |
| [getBlueMask()](#getBlueMask--) | Gets or sets the blue mask. |
| [getClass()](#getClass--) |  |
| [getGreenMask()](#getGreenMask--) | Gets or sets the green mask. |
| [getKind()](#getKind--) | Gets or sets the kind. |
| [getLength()](#getLength--) | Gets the global layer mask section length in bytes. |
| [getOpacity()](#getOpacity--) | Gets or sets global layers opacity. |
| [getOverlayColorSpace()](#getOverlayColorSpace--) | Gets or sets the overlay color space (undocumented value). |
| [getRedMask()](#getRedMask--) | Gets or sets the red mask. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [save_internalized(StreamContainer streamContainer)](#save-internalized-com.aspose.psd.StreamContainer-) | Saves the data to specified stream container. |
| [setAlphaMask(short value)](#setAlphaMask-short-) | Gets or sets the alpha mask. |
| [setBlueMask(short value)](#setBlueMask-short-) | Gets or sets the blue mask. |
| [setGreenMask(short value)](#setGreenMask-short-) | Gets or sets the green mask. |
| [setKind(byte value)](#setKind-byte-) | Gets or sets the kind. |
| [setOpacity(short value)](#setOpacity-short-) | Gets or sets global layers opacity. |
| [setOverlayColorSpace(short value)](#setOverlayColorSpace-short-) | Gets or sets the overlay color space (undocumented value). |
| [setRedMask(short value)](#setRedMask-short-) | Gets or sets the red mask. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### GlobalLayerMaskInfo() {#GlobalLayerMaskInfo--}
```
public GlobalLayerMaskInfo()
```


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




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

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


Gets or sets the alpha mask.

Value: The alpha mask.

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


Gets or sets the blue mask.

Value: The blue mask.

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




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


Gets or sets the green mask.

Value: The green mask.

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


Gets or sets the kind. 0 = Color selected--i.e. inverted; 1 = Color protected; 128 = use value stored per layer. This value is preferred. The others are for backward compatibility with beta versions.

Value: The kind.

**Returns:**
byte
### getLength() {#getLength--}
```
public final long getLength()
```


Gets the global layer mask section length in bytes.

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


Gets or sets global layers opacity. 0 = transparent, 100 = opaque.

Value: The global layers opacity.

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


Gets or sets the overlay color space (undocumented value).

Value: The overlay color space.

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


Gets or sets the red mask.

Value: The red mask.

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




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




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




### save_internalized(StreamContainer streamContainer) {#save-internalized-com.aspose.psd.StreamContainer-}
```
public final void save_internalized(StreamContainer streamContainer)
```


Saves the data to specified stream container.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| streamContainer | [StreamContainer](../../com.aspose.psd/streamcontainer) | The stream container to save to. |

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


Gets or sets the alpha mask.

Value: The alpha mask.

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

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


Gets or sets the blue mask.

Value: The blue mask.

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

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


Gets or sets the green mask.

Value: The green mask.

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

### setKind(byte value) {#setKind-byte-}
```
public final void setKind(byte value)
```


Gets or sets the kind. 0 = Color selected--i.e. inverted; 1 = Color protected; 128 = use value stored per layer. This value is preferred. The others are for backward compatibility with beta versions.

Value: The kind.

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

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


Gets or sets global layers opacity. 0 = transparent, 100 = opaque.

Value: The global layers opacity.

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

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


Gets or sets the overlay color space (undocumented value).

Value: The overlay color space.

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

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


Gets or sets the red mask.

Value: The red mask.

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

### 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 |  |

