ImageGear for .NET
SwapChannels Method
See Also  Example Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : SwapChannels Method




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

Glossary Item Box

Swaps two channels in page's DIB.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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

C#Copy Code
// Swaps the first and third channels.  In an RGB image this swaps the red and blue channels.
ImGearRasterProcessing.SwapChannels(igRasterPage, 0, 2);
Visual BasicCopy Code
' 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

©2013. Accusoft Corporation. All Rights Reserved.