ChannelInformation

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Cloneable

public class ChannelInformation implements Cloneable

The channel information.

Constructors

ConstructorDescription
ChannelInformation(short compressionMethod, int bitDepth, int psdVersion)

Fields

FieldDescription
FullMaskChannelId_internalizedThe user (raster) mask channel Id.
ShortMaskChannelId_internalizedThe short (raster or vector) mask channel Id.
TransparencyMaskChannelId_internalizedThe alpha channel Id

Methods

MethodDescription
compressChannel_internalized(LongArray rawData, Rectangle layerBounds, Rectangle layerMaskBounds)It compresses channel data
create_internalized(LongArray compressedData, short compressionMethod, int width, int height, PsdHeader header)
create_internalized(short compressionMethod, PsdHeader header)
deepClone_internalized(ChannelInformation[] info)Clones the specified channel information.
equals(Object arg0)
getBitDepth_internalized()Gets the channel bit depth.
getChannelID()Gets or sets the channel ID.
getClass()
getCompressionMethod()Gets or sets the compression method.
getData_internalized()Gets or sets the channel data.
getLength()Gets the channel length in bytes.
getPsdHeaderVersion_internalized()Gets the version of PSD
getUncompressedData_internalized()Gets the uncompressed data.
hashCode()
isShortMaskChannel_internalized()Gets channel is ShortMask or not
notify()
notifyAll()
saveChannelData_internalized(StreamContainer streamContainer)
saveChannelData_internalized(StreamContainer streamContainer, boolean is32BitColor)Saves the channel data.
setChannelID(short value)Gets or sets the channel ID.
setCompressedData_internalized(LongArray compressedData, int channelWidth, int channelHeight)Sets the compressed data.
setCompressionMethod(short value)Gets or sets the compression method.
setRawData_internalized(LongArray rawData, Size imageSize, Rectangle currentBounds)Sets the compressed data.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ChannelInformation(short compressionMethod, int bitDepth, int psdVersion)

public ChannelInformation(short compressionMethod, int bitDepth, int psdVersion)

Parameters:

ParameterTypeDescription
compressionMethodshort
bitDepthint
psdVersionint

FullMaskChannelId_internalized

public static final int FullMaskChannelId_internalized

The user (raster) mask channel Id. (if a layer has both vector and raster mask).

ShortMaskChannelId_internalized

public static final int ShortMaskChannelId_internalized

The short (raster or vector) mask channel Id. (if a layer has only one vector or raster mask but not both).

TransparencyMaskChannelId_internalized

public static final int TransparencyMaskChannelId_internalized

The alpha channel Id

compressChannel_internalized(LongArray rawData, Rectangle layerBounds, Rectangle layerMaskBounds)

public final void compressChannel_internalized(LongArray rawData, Rectangle layerBounds, Rectangle layerMaskBounds)

It compresses channel data

Parameters:

ParameterTypeDescription
rawDatacom.aspose.internal.LongArrayThe raw data for compress
layerBoundsRectangleThe bounds of layer
layerMaskBoundsRectangleThe bounds of layer mask

create_internalized(LongArray compressedData, short compressionMethod, int width, int height, PsdHeader header)

public static ChannelInformation create_internalized(LongArray compressedData, short compressionMethod, int width, int height, PsdHeader header)

Parameters:

ParameterTypeDescription
compressedDatacom.aspose.internal.LongArray
compressionMethodshort
widthint
heightint
headercom.aspose.internal.fileformats.psd.sections.PsdHeader

Returns: ChannelInformation

create_internalized(short compressionMethod, PsdHeader header)

public static ChannelInformation create_internalized(short compressionMethod, PsdHeader header)

Parameters:

ParameterTypeDescription
compressionMethodshort
headercom.aspose.internal.fileformats.psd.sections.PsdHeader

Returns: ChannelInformation

deepClone_internalized(ChannelInformation[] info)

public static ChannelInformation[] deepClone_internalized(ChannelInformation[] info)

Clones the specified channel information.

Parameters:

ParameterTypeDescription
infoChannelInformation[]The information.

Returns: com.aspose.psd.fileformats.psd.layers.ChannelInformation[] - The cloned layer mask.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBitDepth_internalized()

public final int getBitDepth_internalized()

Gets the channel bit depth.

Returns: int

getChannelID()

public final short getChannelID()

Gets or sets the channel ID.

Value: The channel ID.

Returns: short

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCompressionMethod()

public final short getCompressionMethod()

Gets or sets the compression method.

Value: The compression method.

Returns: short

getData_internalized()

public final LongArray getData_internalized()

Gets or sets the channel data.

Value: The channel data.

Returns: com.aspose.internal.LongArray

getLength()

public final long getLength()

Gets the channel length in bytes.

Value: The length.

Returns: long

getPsdHeaderVersion_internalized()

public final int getPsdHeaderVersion_internalized()

Gets the version of PSD

Returns: int

getUncompressedData_internalized()

public final LongArray getUncompressedData_internalized()

Gets the uncompressed data.

Returns: com.aspose.internal.LongArray -

hashCode()

public native int hashCode()

Returns: int

isShortMaskChannel_internalized()

public final boolean isShortMaskChannel_internalized()

Gets channel is ShortMask or not

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

saveChannelData_internalized(StreamContainer streamContainer)

public final void saveChannelData_internalized(StreamContainer streamContainer)

Parameters:

ParameterTypeDescription
streamContainerStreamContainer

saveChannelData_internalized(StreamContainer streamContainer, boolean is32BitColor)

public final void saveChannelData_internalized(StreamContainer streamContainer, boolean is32BitColor)

Saves the channel data.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container to save to.
is32BitColorbooleantrue if the color is in 32-bit mode

setChannelID(short value)

public final void setChannelID(short value)

Gets or sets the channel ID.

Value: The channel ID.

Parameters:

ParameterTypeDescription
valueshort

setCompressedData_internalized(LongArray compressedData, int channelWidth, int channelHeight)

public final void setCompressedData_internalized(LongArray compressedData, int channelWidth, int channelHeight)

Sets the compressed data.

Parameters:

ParameterTypeDescription
compressedDatacom.aspose.internal.LongArrayThe compressed data.
channelWidthintWidth of the channel.
channelHeightintHeight of the channel.

setCompressionMethod(short value)

public final void setCompressionMethod(short value)

Gets or sets the compression method.

Value: The compression method.

Parameters:

ParameterTypeDescription
valueshort

setRawData_internalized(LongArray rawData, Size imageSize, Rectangle currentBounds)

public final void setRawData_internalized(LongArray rawData, Size imageSize, Rectangle currentBounds)

Sets the compressed data.

Parameters:

ParameterTypeDescription
rawDatacom.aspose.internal.LongArrayThe raw data.
imageSizeSizeThe size of image
currentBoundsRectangleThe bounds of current channelData. If image is big it will be divide on process and currentBounds != imageBounds

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