ImageGear .NET v25.2 - Updated
SwapChannels Method
Example 




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.
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
// Swaps the first and third channels.  In an RGB image this swaps the red and blue channels.
ImGearRasterProcessing.SwapChannels(igRasterPage, 0, 2);
' Swaps the first and third channels.  In an RGB image this swaps the red and blue channels.
ImGearRasterProcessing.SwapChannels(DirectCast(igRasterPage, ImGearRasterPage), 0, 2)
See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
ImGearRasterPage Class

Is this page helpful?
Yes No
Thanks for your feedback.