Method CreateChannelExtractor
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
CreateChannelExtractor(IBitmapSource, int, in PixelFormat)
public static IBitmapSource CreateChannelExtractor(this IBitmapSource source, int channelIndex, in PixelFormat outputPixelFormat)
Parameters
sourceIBitmapSourcechannelIndexintoutputPixelFormatPixelFormat
Returns
CreateChannelExtractor<TPixelOutput>(IBitmapSource, int)
public static IBitmapSource<TPixelOutput> CreateChannelExtractor<TPixelOutput>(this IBitmapSource source, int channelIndex) where TPixelOutput : unmanaged, INaturalPixelInfo
Parameters
sourceIBitmapSourcechannelIndexint
Returns
- IBitmapSource<TPixelOutput>
Type Parameters
TPixelOutput