VintaSoft Twain .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging Namespace / ColorSpaceFormat Class / ColorSpaceFormat Constructors / ColorSpaceFormat Constructor(ColorSpaceType,Int32[])
Syntax Remarks Requirements SeeAlso
In This Topic
    ColorSpaceFormat Constructor(ColorSpaceType,Int32[])
    In This Topic
    Initializes a new instance of the ColorSpaceFormat class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal colorSpace
    Color space.
    As ColorSpaceType, _
    ByVal ParamArray channelsOrder
    A sequence of channel ordinal numbers.
    () As Integer _
    )
    public ColorSpaceFormat(
    ColorSpaceType colorSpace,
    params int[] channelsOrder
    )
    public: ColorSpaceFormat(
    ColorSpaceType colorSpace,
    params int[]* channelsOrder
    )
    public:
    ColorSpaceFormat(
    ColorSpaceType colorSpace,
    ... array<int>^ channelsOrder
    )

    Parameters

    colorSpace
    Color space.
    channelsOrder
    A sequence of channel ordinal numbers.
    Remarks

    The channelsOrder array defines a remapping of default channels sequence.
    For example, if color space is RGB and channels order is [2,0,1] then defined color format is BRG.

    Values of the channelsOrder can contain undefined channels.
    For example, BGRA color format can be specified using RGB color space and [2,1,0,3] values of channels order.

    Requirements

    Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also