Table of Contents

Method CreateChannelReplacedBitmap

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll

CreateChannelReplacedBitmap(IImagingFactory, IBitmapSource, int, IBitmapSource)

public static IBitmapSource CreateChannelReplacedBitmap(this IImagingFactory factory, IBitmapSource source, int channelIndex, IBitmapSource channelSource)

Parameters

factory IImagingFactory
source IBitmapSource
channelIndex int
channelSource IBitmapSource

Returns

IBitmapSource

CreateChannelReplacedBitmap<TPixel>(IImagingFactory, IBitmapSource<TPixel>, int, IBitmapSource)

public static IBitmapSource<TPixel> CreateChannelReplacedBitmap<TPixel>(this IImagingFactory factory, IBitmapSource<TPixel> source, int channelIndex, IBitmapSource channelSource) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
source IBitmapSource<TPixel>
channelIndex int
channelSource IBitmapSource

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel