ChannelInformation
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Cloneable
public class ChannelInformation implements Cloneable
The channel information.
Constructors
Constructor | Description |
---|---|
ChannelInformation(short compressionMethod, int bitDepth, int psdVersion) |
Fields
Field | Description |
---|---|
FullMaskChannelId_internalized | The user (raster) mask channel Id. |
ShortMaskChannelId_internalized | The short (raster or vector) mask channel Id. |
TransparencyMaskChannelId_internalized | The alpha channel Id |
Methods
ChannelInformation(short compressionMethod, int bitDepth, int psdVersion)
public ChannelInformation(short compressionMethod, int bitDepth, int psdVersion)
Parameters:
Parameter | Type | Description |
---|---|---|
compressionMethod | short | |
bitDepth | int | |
psdVersion | int |
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:
Parameter | Type | Description |
---|---|---|
rawData | byte[] | The raw data for compress |
layerBounds | Rectangle | The bounds of layer |
layerMaskBounds | Rectangle | The 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:
Parameter | Type | Description |
---|---|---|
compressedData | byte[] | |
compressionMethod | short | |
width | int | |
height | int | |
header | com.aspose.internal.fileformats.psd.sections.PsdHeader |
Returns: ChannelInformation
create_internalized(short compressionMethod, PsdHeader header)
public static ChannelInformation create_internalized(short compressionMethod, PsdHeader header)
Parameters:
Parameter | Type | Description |
---|---|---|
compressionMethod | short | |
header | com.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:
Parameter | Type | Description |
---|---|---|
info | ChannelInformation[] | The information. |
Returns: com.aspose.psd.fileformats.psd.layers.ChannelInformation[] - The cloned layer mask.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer |
saveChannelData_internalized(StreamContainer streamContainer, boolean is32BitColor)
public final void saveChannelData_internalized(StreamContainer streamContainer, boolean is32BitColor)
Saves the channel data.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container to save to. |
is32BitColor | boolean | true 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:
Parameter | Type | Description |
---|---|---|
value | short |
setCompressedData_internalized(byte[] compressedData, int channelWidth, int channelHeight)
public final void setCompressedData_internalized(byte[] compressedData, int channelWidth, int channelHeight)
Sets the compressed data.
Parameters:
Parameter | Type | Description |
---|---|---|
compressedData | byte[] | The compressed data. |
channelWidth | int | Width of the channel. |
channelHeight | int | Height of the channel. |
setCompressionMethod(short value)
public final void setCompressionMethod(short value)
Gets or sets the compression method.
Value: The compression method.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setRawData_internalized(byte[] rawData, Size imageSize, Rectangle currentBounds)
public final void setRawData_internalized(byte[] rawData, Size imageSize, Rectangle currentBounds)
Sets the compressed data.
Parameters:
Parameter | Type | Description |
---|---|---|
rawData | byte[] | The raw data. |
imageSize | Size | The size of image |
currentBounds | Rectangle | The 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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |