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