ImageGear .NET - Updated
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)
public static ImGearRasterPage CreateChannelCopy( 
   ImGearRasterPage page,
   int channelNumber
)
public: static ImGearRasterPage* CreateChannelCopy( 
   ImGearRasterPage* page,
   int channelNumber
) 
public:
static ImGearRasterPage^ CreateChannelCopy( 
   ImGearRasterPage^ page,
   int 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);
' Create a new image by copying the third channel of an existing image.
Dim igRasterPageNew As ImGearRasterPage = ImGearRasterProcessing.CreateChannelCopy(igRasterPage, 2)
See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List
ImGearRasterPage Class