PattResourceData

Inheritance: java.lang.Object

public final class PattResourceData

The class to store the pattern data for PattResource resource.

Constructors

ConstructorDescription
PattResourceData()Initializes a new instance of the PattResourceData class.

Methods

MethodDescription
createNewInstance_internalized()
equals(Object arg0)
getChannelsCompressionMode_internalized()Returns the compression method code obtained from the pattern\u2019s channels.
getClass()
getDefaultPattern_internalized()Creates the default pattern data.
getHeight()Gets the height.
getImageMode()Gets the image mode.
getLength()Gets the length of the pattern.
getName()Gets or sets the name.
getPatternData()Gets the pattern data.
getPatternDataArrayList_internalized()The memory array list.
getPatternId()Gets or sets the pattern identifier.
getVersion()Gets the version.
getWidth()Gets the width.
hashCode()
notify()
notifyAll()
save(StreamContainer streamContainer)Saves the pattern data.
setHeight_internalized(short value)Gets the height.
setImageMode_internalized(short value)Gets the image mode.
setIndexColorTable_internalized(byte[] value)Gets or sets the index color table.
setName(String value)Gets or sets the name.
setPattern(int[] pixels, Rectangle bounds)Sets the pattern pixel buffer and target size, updates Width (.getWidth/.setWidth(short)) / Height (.getHeight/.setHeight(short)), and stores the data for saving using the default compression mode (0).
setPatternDataArrayList_internalized(VirtualMemoryArrayList value)The memory array list.
setPatternId(String value)Gets or sets the pattern identifier.
setPattern_internalized(int[] pixels, Rectangle bounds, byte compressionMode)Sets the pattern pixel buffer and target size, updates Width (.getWidth/.setWidth(short)) / Height (.getHeight/.setHeight(short)), and stores the data for saving using the specified compression mode.
setVersion_internalized(int value)Gets the version.
setWidth_internalized(short value)Gets the width.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PattResourceData()

public PattResourceData()

Initializes a new instance of the PattResourceData class.

createNewInstance_internalized()

public static PattResourceData createNewInstance_internalized()

Returns: PattResourceData

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

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()

public final native Class<?> getClass()

Returns: java.lang.Class

getDefaultPattern_internalized()

public static PixelsData getDefaultPattern_internalized()

Creates the default pattern data.

Returns: PixelsData - The default pattern data.

getHeight()

public final short getHeight()

Gets the height.

Value: The height.

Returns: short

getImageMode()

public final short getImageMode()

Gets the image mode.

Value: The image mode.

Returns: short

getLength()

public final int getLength()

Gets the length of the pattern.

Value: The length of the pattern.

Returns: int

getName()

public final String getName()

Gets or sets the name.

Value: The name.

Returns: java.lang.String

getPatternData()

public final int[] getPatternData()

Gets the pattern data.

Value: The pattern data.

Returns: int[]

getPatternDataArrayList_internalized()

public final VirtualMemoryArrayList getPatternDataArrayList_internalized()

The memory array list.

Returns: com.aspose.internal.fileformats.psd.layers.layerresources.VirtualMemoryArrayList

getPatternId()

public final String getPatternId()

Gets or sets the pattern identifier.

Value: The pattern identifier.

Returns: java.lang.String

getVersion()

public final int getVersion()

Gets the version.

Value: The version.

Returns: int

getWidth()

public final short getWidth()

Gets the width.

Value: The width.

Returns: short

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save(StreamContainer streamContainer)

public final void save(StreamContainer streamContainer)

Saves the pattern data.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container to save to.

setHeight_internalized(short value)

public final void setHeight_internalized(short value)

Gets the height.

Value: The height.

Parameters:

ParameterTypeDescription
valueshort

setImageMode_internalized(short value)

public final void setImageMode_internalized(short value)

Gets the image mode.

Value: The image mode.

Parameters:

ParameterTypeDescription
valueshort

setIndexColorTable_internalized(byte[] value)

public final void setIndexColorTable_internalized(byte[] value)

Gets or sets the index color table.

Parameters:

ParameterTypeDescription
valuebyte[]

setName(String value)

public final void setName(String value)

Gets or sets the name.

Value: The name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPattern(int[] pixels, Rectangle bounds)

public final void setPattern(int[] pixels, Rectangle bounds)

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

Parameters:

ParameterTypeDescription
pixelsint[]32-bit pixels in 0xAARRGGBB format.
boundsRectanglePixel bounds of the pattern.

setPatternDataArrayList_internalized(VirtualMemoryArrayList value)

public final void setPatternDataArrayList_internalized(VirtualMemoryArrayList value)

The memory array list.

Parameters:

ParameterTypeDescription
valuecom.aspose.internal.fileformats.psd.layers.layerresources.VirtualMemoryArrayList

setPatternId(String value)

public final void setPatternId(String value)

Gets or sets the pattern identifier.

Value: The pattern identifier.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPattern_internalized(int[] pixels, Rectangle bounds, byte compressionMode)

public final void setPattern_internalized(int[] pixels, Rectangle bounds, byte compressionMode)

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

Parameters:

ParameterTypeDescription
pixelsint[]32-bit pixels in 0xAARRGGBB format.
boundsRectanglePixel bounds of the pattern.
compressionModebyteThe compression mode used to define the compression of pattern data on psd file save.

setVersion_internalized(int value)

public final void setVersion_internalized(int value)

Gets the version.

Value: The version.

Parameters:

ParameterTypeDescription
valueint

setWidth_internalized(short value)

public final void setWidth_internalized(short value)

Gets the width.

Value: The width.

Parameters:

ParameterTypeDescription
valueshort

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int