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
IBitmapSourcesourceContext
IColorContextdstContext
IColorContextdstPixelFormat
PixelFormat
Returns
CreateColorTransformer<TPixel>(IBitmapSource, IColorContext, IColorContext)
public static IBitmapSource<TPixel> CreateColorTransformer<TPixel>(this IBitmapSource source, IColorContext sourceContext, IColorContext dstContext) where TPixel : unmanaged, INaturalPixelInfo
Parameters
source
IBitmapSourcesourceContext
IColorContextdstContext
IColorContext
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel