Class Channel
Inheritance
Namespace: PhotoshopFile
Syntax
public class Channel
Properties
ID
Channel ID.
Declaration
public short ID { get; set; }
Property Value
Type | Description |
---|---|
System.Int16 |
ImageCompression
Image compression method used.
Declaration
public ImageCompression ImageCompression { get; set; }
Property Value
Type | Description |
---|---|
ImageCompression |
ImageData
Decompressed image data for this color channel.
Declaration
public byte[] ImageData { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Remarks
When making changes to the ImageData, set ImageDataRaw to null so that the correct data will be compressed during save.
ImageDataRaw
Raw image data for this color channel, in compressed on-disk format.
Declaration
public byte[] ImageDataRaw { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Remarks
If null, the ImageData will be automatically compressed during save.
Layer
The layer to which this channel belongs
Declaration
public Layer Layer { get; }
Property Value
Type | Description |
---|---|
Layer |
Length
Total length of the channel data, including compression headers.
Declaration
public long Length { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Rect
Declaration
public Rectangle Rect { get; }
Property Value
Type | Description |
---|---|
Rectangle |
RleRowLengths
RLE-compressed length of each row.
Declaration
public RleRowLengths RleRowLengths { get; set; }
Property Value
Type | Description |
---|---|
RleRowLengths |
Methods
CompressImageData()
Compresses the image data.
Declaration
public void CompressImageData()
DecodeImageData()
Decodes the raw image data from the compressed on-disk format into an uncompressed bitmap, in native byte order.
Declaration
public void DecodeImageData()