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

    Class ChannelList

    Inheritance
    System.Object
    System.Collections.Generic.List<Channel>
    ChannelList
    Namespace: PhotoshopFile
    Syntax
    public class ChannelList : List<Channel>, IList<Channel>, ICollection<Channel>, IList, ICollection, IReadOnlyList<Channel>, IReadOnlyCollection<Channel>, IEnumerable<Channel>, IEnumerable

    Constructors

    ChannelList()

    Declaration
    public ChannelList()

    Methods

    ContainsId(Int32)

    Declaration
    public bool ContainsId(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    System.Boolean

    GetId(Int32)

    Declaration
    public Channel GetId(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    Channel

    ToIdArray()

    Returns channels with nonnegative IDs as an array, so that accessing a channel by Id can be optimized into pointer arithmetic rather than being implemented as a List scan.

    Declaration
    public Channel[] ToIdArray()
    Returns
    Type Description
    Channel[]
    Remarks

    This optimization is crucial for blitting lots of pixels back and forth between Photoshop's per-channel representation, and Paint.NET's per-pixel BGRA representation.

    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