PattResourceData Class

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.9.0

Constructors

NameDescription
PattResourceData()Initializes a new instance of the PattResourceData class

Properties

NameTypeAccessDescription
heightshortrGets the height.
image_modeColorModesrGets the image mode.
lengthintrGets the length of the pattern.
namestringr/wGets or sets the name.
pattern_dataintrGets the pattern data.
pattern_idstringr/wGets or sets the pattern identifier.
versionintrGets the version.
widthshortrGets the width.

Methods

NameDescription
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:

ParameterTypeDescription
stream_containerStreamContainerThe stream container to save to.

Method: set_pattern(pixels, bounds)

 set_pattern(pixels, bounds) 

Sets the pattern.

Parameters:

ParameterTypeDescription
pixelsintThe pixels.
boundsRectangleThe bounds.