Swaps two channels in page's DIB.
Syntax
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