ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / SwapChannels Method
Page to swap the channels.
Index of the first channel to be swapped.
Index of the second channel to be swapped.




In This Topic
    SwapChannels Method
    In This Topic
    Swaps two channels in page's DIB.
    Syntax
    'Declaration
     
    Public Shared Sub SwapChannels( _
       ByVal page As ImGearRasterPage, _
       ByVal channelIndex1 As Integer, _
       ByVal channelIndex2 As Integer _
    ) 
    'Usage
     
    Dim page As ImGearRasterPage
    Dim channelIndex1 As Integer
    Dim channelIndex2 As Integer
     
    ImGearRasterProcessing.SwapChannels(page, channelIndex1, channelIndex2)
    public static void SwapChannels( 
       ImGearRasterPage page,
       int channelIndex1,
       int channelIndex2
    )
    public: static void SwapChannels( 
       ImGearRasterPage* page,
       int channelIndex1,
       int channelIndex2
    ) 
    public:
    static void SwapChannels( 
       ImGearRasterPage^ page,
       int channelIndex1,
       int channelIndex2
    ) 

    Parameters

    page
    Page to swap the channels.
    channelIndex1
    Index of the first channel to be swapped.
    channelIndex2
    Index of the second channel to be swapped.
    Example
    See Also