ImageGear .NET - Updated July 5, 2018
CreateChannelCopy(ImGearRasterPage,Int32) Method
Example 




ImageGear24.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > CreateChannelCopy Method : CreateChannelCopy(ImGearRasterPage,Int32) Method
Page from which the channel is obtained.
Channel number.
Copies a channel to a new page.
Syntax
'Declaration
 
Public Overloads Shared Function CreateChannelCopy( _
   ByVal page As ImGearRasterPage, _
   ByVal channelNumber As Integer _
) As ImGearRasterPage
 
'Usage
 
Dim page As ImGearRasterPage
Dim channelNumber As Integer
Dim value As ImGearRasterPage
 
value = ImGearRasterProcessing.CreateChannelCopy(page, channelNumber)

Parameters

page
Page from which the channel is obtained.
channelNumber
Channel number.

Return Value

ImageGear.Core.ImGearRasterPage class containing a copy of the channel.
Remarks
ChannelNumber can be within the [0..ChannelCount-1] range.
Example
// Create a new image by copying the third channel of an existing image.
ImGearRasterPage igRasterPageNew = ImGearRasterProcessing.CreateChannelCopy(
    igRasterPage, 2);
See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List
ImGearRasterPage Class