Table of Contents

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

factory IImagingFactory
source IBitmapSource
channelIndex int
outputPixelFormat PixelFormat

Returns

IBitmapSource

CreateChannelExtractedBitmap<TPixelOutput>(IImagingFactory, IBitmapSource, int)

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

Parameters

factory IImagingFactory
source IBitmapSource
channelIndex int

Returns

IBitmapSource<TPixelOutput>

Type Parameters

TPixelOutput