ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : SwapChannels Method |
'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 )
// 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)