Class Channel | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Channel

    Inheritance
    System.Object
    Channel
    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()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023