PattResourceData Class
Contents
[
Hide
]Summary: The class to store the pattern data for PattResource resource.
Module: aspose.psd.fileformats.psd.layers.layerresources
Full Name: aspose.psd.fileformats.psd.layers.layerresources.PattResourceData
Aspose.PSD Version: 24.12.0
Constructors
| Name | Description |
|---|---|
| PattResourceData() | Initializes a new instance of the PattResourceData class |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| height | short | r | Gets the height. |
| image_mode | ColorModes | r | Gets the image mode. |
| length | int | r | Gets the length of the pattern. |
| name | string | r/w | Gets or sets the name. |
| pattern_data | int | r | Gets the pattern data. |
| pattern_id | string | r/w | Gets or sets the pattern identifier. |
| version | int | r | Gets the version. |
| width | short | r | Gets the width. |
Methods
| Name | Description |
|---|---|
| save(stream_container) | Saves the pattern data. |
| set_pattern(pixels, bounds) | Sets the pattern. |
Constructor: PattResourceData()
PattResourceData()
Initializes a new instance of the PattResourceData class
Method: save(stream_container)
save(stream_container)
Saves the pattern data.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream_container | StreamContainer | The stream container to save to. |
Method: set_pattern(pixels, bounds)
set_pattern(pixels, bounds)
Sets the pattern.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pixels | int | The pixels. |
| bounds | Rectangle | The bounds. |