Table of Contents

Method CreateColorTransformer

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

CreateColorTransformer(IBitmapSource, IColorContext, IColorContext, in PixelFormat)

public static IBitmapSource CreateColorTransformer(this IBitmapSource source, IColorContext sourceContext, IColorContext dstContext, in PixelFormat dstPixelFormat)

Parameters

source IBitmapSource
sourceContext IColorContext
dstContext IColorContext
dstPixelFormat PixelFormat

Returns

IBitmapSource

CreateColorTransformer<TPixel>(IBitmapSource, IColorContext, IColorContext)

public static IBitmapSource<TPixel> CreateColorTransformer<TPixel>(this IBitmapSource source, IColorContext sourceContext, IColorContext dstContext) where TPixel : unmanaged, INaturalPixelInfo

Parameters

source IBitmapSource
sourceContext IColorContext
dstContext IColorContext

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel