Table of Contents

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

source IBitmapSource
channelIndex int
outputPixelFormat PixelFormat

Returns

IBitmapSource

CreateChannelExtractor<TPixelOutput>(IBitmapSource, int)

public static IBitmapSource<TPixelOutput> CreateChannelExtractor<TPixelOutput>(this IBitmapSource source, int channelIndex) where TPixelOutput : unmanaged, INaturalPixelInfo

Parameters

source IBitmapSource
channelIndex int

Returns

IBitmapSource<TPixelOutput>

Type Parameters

TPixelOutput