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(byte[] rawData, Rectangle layerBounds, Rectangle layerMaskBounds)It compresses channel data
create_internalized(byte[] 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(byte[] compressedData, int channelWidth, int channelHeight)Sets the compressed data.
setCompressionMethod(short value)Gets or sets the compression method.
setRawData_internalized(byte[] 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(byte[] rawData, Rectangle layerBounds, Rectangle layerMaskBounds)

public final void compressChannel_internalized(byte[] rawData, Rectangle layerBounds, Rectangle layerMaskBounds)

It compresses channel data

Parameters:

ParameterTypeDescription
rawDatabyte[]The raw data for compress
layerBoundsRectangleThe bounds of layer
layerMaskBoundsRectangleThe bounds of layer mask

create_internalized(byte[] compressedData, short compressionMethod, int width, int height, PsdHeader header)

public static ChannelInformation create_internalized(byte[] compressedData, short compressionMethod, int width, int height, PsdHeader header)

Parameters:

ParameterTypeDescription
compressedDatabyte[]
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 byte[] getData_internalized()

Gets or sets the channel data.

Value: The channel data.

Returns: byte[]

getLength()

public final int getLength()

Gets the channel length in bytes.

Value: The length.

Returns: int

getPsdHeaderVersion_internalized()

public final int getPsdHeaderVersion_internalized()

Gets the version of PSD

Returns: int

getUncompressedData_internalized()

public final byte[] getUncompressedData_internalized()

Gets the uncompressed data.

Returns: byte[] -

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(byte[] compressedData, int channelWidth, int channelHeight)

public final void setCompressedData_internalized(byte[] compressedData, int channelWidth, int channelHeight)

Sets the compressed data.

Parameters:

ParameterTypeDescription
compressedDatabyte[]The 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(byte[] rawData, Size imageSize, Rectangle currentBounds)

public final void setRawData_internalized(byte[] rawData, Size imageSize, Rectangle currentBounds)

Sets the compressed data.

Parameters:

ParameterTypeDescription
rawDatabyte[]The 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