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

The class to store the pattern data for [PattResource](../../com.aspose.psd.fileformats.psd.layers.layerresources/pattresource) resource.
## Constructors

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

| Method | Description |
| --- | --- |
| [createNewInstance_internalized()](#createNewInstance-internalized--) |  |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getChannelsCompressionMode_internalized()](#getChannelsCompressionMode-internalized--) | Returns the compression method code obtained from the pattern\\u2019s channels. |
| [getClass()](#getClass--) |  |
| [getDefaultPattern_internalized()](#getDefaultPattern-internalized--) | Creates the default pattern data. |
| [getHeight()](#getHeight--) | Gets the height. |
| [getImageMode()](#getImageMode--) | Gets the image mode. |
| [getLength()](#getLength--) | Gets the length of the pattern. |
| [getName()](#getName--) | Gets or sets the name. |
| [getPatternData()](#getPatternData--) | Gets the pattern data. |
| [getPatternDataArrayList_internalized()](#getPatternDataArrayList-internalized--) | The memory array list. |
| [getPatternId()](#getPatternId--) | Gets or sets the pattern identifier. |
| [getVersion()](#getVersion--) | Gets the version. |
| [getWidth()](#getWidth--) | Gets the width. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [save(StreamContainer streamContainer)](#save-com.aspose.psd.StreamContainer-) | Saves the pattern data. |
| [setHeight_internalized(short value)](#setHeight-internalized-short-) | Gets the height. |
| [setImageMode_internalized(short value)](#setImageMode-internalized-short-) | Gets the image mode. |
| [setIndexColorTable_internalized(byte[] value)](#setIndexColorTable-internalized-byte---) | Gets or sets the index color table. |
| [setName(String value)](#setName-java.lang.String-) | Gets or sets the name. |
| [setPattern(int[] pixels, Rectangle bounds)](#setPattern-int---com.aspose.psd.Rectangle-) | Sets the pattern pixel buffer and target size, updates  Width ([.getWidth](../../null/\#getWidth)/[.setWidth(short)](../../null/\#setWidth-short-)) /  Height ([.getHeight](../../null/\#getHeight)/[.setHeight(short)](../../null/\#setHeight-short-)), and stores the data for saving using the default compression mode (0). |
| [setPatternDataArrayList_internalized(VirtualMemoryArrayList value)](#setPatternDataArrayList-internalized-com.aspose.internal.fileformats.psd.layers.layerresources.VirtualMemoryArrayList-) | The memory array list. |
| [setPatternId(String value)](#setPatternId-java.lang.String-) | Gets or sets the pattern identifier. |
| [setPattern_internalized(int[] pixels, Rectangle bounds, byte compressionMode)](#setPattern-internalized-int---com.aspose.psd.Rectangle-byte-) | Sets the pattern pixel buffer and target size, updates  Width ([.getWidth](../../null/\#getWidth)/[.setWidth(short)](../../null/\#setWidth-short-)) /  Height ([.getHeight](../../null/\#getHeight)/[.setHeight(short)](../../null/\#setHeight-short-)), and stores the data for saving using the specified compression mode. |
| [setVersion_internalized(int value)](#setVersion-internalized-int-) | Gets the version. |
| [setWidth_internalized(short value)](#setWidth-internalized-short-) | Gets the width. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### PattResourceData() {#PattResourceData--}
```
public PattResourceData()
```


Initializes a new instance of the [PattResourceData](../../com.aspose.psd.fileformats.psd.layers.layerresources/pattresourcedata) class.

### createNewInstance_internalized() {#createNewInstance-internalized--}
```
public static PattResourceData createNewInstance_internalized()
```




**Returns:**
[PattResourceData](../../com.aspose.psd.fileformats.psd.layers.layerresources/pattresourcedata)
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




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

**Returns:**
boolean
### getChannelsCompressionMode_internalized() {#getChannelsCompressionMode-internalized--}
```
public final byte getChannelsCompressionMode_internalized()
```


Returns the compression method code obtained from the pattern\\u2019s channels.

**Returns:**
byte - Compression code: 0 \\u2014 raw/uncompressed; >= 1 \\u2014 zip.
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getDefaultPattern_internalized() {#getDefaultPattern-internalized--}
```
public static PixelsData getDefaultPattern_internalized()
```


Creates the default pattern data.

**Returns:**
[PixelsData](../../com.aspose.psd.pixelsdatamodels/pixelsdata) - The default pattern data.
### getHeight() {#getHeight--}
```
public final short getHeight()
```


Gets the height.

Value: The height.

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


Gets the image mode.

Value: The image mode.

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


Gets the length of the pattern.

Value: The length of the pattern.

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


Gets or sets the name.

Value: The name.

**Returns:**
java.lang.String
### getPatternData() {#getPatternData--}
```
public final int[] getPatternData()
```


Gets the pattern data.

Value: The pattern data.

**Returns:**
int[]
### getPatternDataArrayList_internalized() {#getPatternDataArrayList-internalized--}
```
public final VirtualMemoryArrayList getPatternDataArrayList_internalized()
```


The memory array list.

**Returns:**
com.aspose.internal.fileformats.psd.layers.layerresources.VirtualMemoryArrayList
### getPatternId() {#getPatternId--}
```
public final String getPatternId()
```


Gets or sets the pattern identifier.

Value: The pattern identifier.

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


Gets the version.

Value: The version.

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


Gets the width.

Value: The width.

**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(StreamContainer streamContainer) {#save-com.aspose.psd.StreamContainer-}
```
public final void save(StreamContainer streamContainer)
```


Saves the pattern data.

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

### setHeight_internalized(short value) {#setHeight-internalized-short-}
```
public final void setHeight_internalized(short value)
```


Gets the height.

Value: The height.

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

### setImageMode_internalized(short value) {#setImageMode-internalized-short-}
```
public final void setImageMode_internalized(short value)
```


Gets the image mode.

Value: The image mode.

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

### setIndexColorTable_internalized(byte[] value) {#setIndexColorTable-internalized-byte---}
```
public final void setIndexColorTable_internalized(byte[] value)
```


Gets or sets the index color table.

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

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


Gets or sets the name.

Value: The name.

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

### setPattern(int[] pixels, Rectangle bounds) {#setPattern-int---com.aspose.psd.Rectangle-}
```
public final void setPattern(int[] pixels, Rectangle bounds)
```


Sets the pattern pixel buffer and target size, updates  Width ([.getWidth](../../null/\#getWidth)/[.setWidth(short)](../../null/\#setWidth-short-)) /  Height ([.getHeight](../../null/\#getHeight)/[.setHeight(short)](../../null/\#setHeight-short-)), and stores the data for saving using the default compression mode (0).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pixels | int[] | 32-bit pixels in  0xAARRGGBB  format. |
| bounds | [Rectangle](../../com.aspose.psd/rectangle) | Pixel bounds of the pattern. |

### setPatternDataArrayList_internalized(VirtualMemoryArrayList value) {#setPatternDataArrayList-internalized-com.aspose.internal.fileformats.psd.layers.layerresources.VirtualMemoryArrayList-}
```
public final void setPatternDataArrayList_internalized(VirtualMemoryArrayList value)
```


The memory array list.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | com.aspose.internal.fileformats.psd.layers.layerresources.VirtualMemoryArrayList |  |

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


Gets or sets the pattern identifier.

Value: The pattern identifier.

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

### setPattern_internalized(int[] pixels, Rectangle bounds, byte compressionMode) {#setPattern-internalized-int---com.aspose.psd.Rectangle-byte-}
```
public final void setPattern_internalized(int[] pixels, Rectangle bounds, byte compressionMode)
```


Sets the pattern pixel buffer and target size, updates  Width ([.getWidth](../../null/\#getWidth)/[.setWidth(short)](../../null/\#setWidth-short-)) /  Height ([.getHeight](../../null/\#getHeight)/[.setHeight(short)](../../null/\#setHeight-short-)), and stores the data for saving using the specified compression mode.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pixels | int[] | 32-bit pixels in  0xAARRGGBB  format. |
| bounds | [Rectangle](../../com.aspose.psd/rectangle) | Pixel bounds of the pattern. |
| compressionMode | byte | The compression mode used to define the compression of pattern data on psd file save. |

### setVersion_internalized(int value) {#setVersion-internalized-int-}
```
public final void setVersion_internalized(int value)
```


Gets the version.

Value: The version.

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

### setWidth_internalized(short value) {#setWidth-internalized-short-}
```
public final void setWidth_internalized(short value)
```


Gets the width.

Value: The width.

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

