Method CreateFormatConverter
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
public static IBitmapSource CreateFormatConverter(this IBitmapSource source, in PixelFormat dstFormat)
Parameters
source
IBitmapSource
dstFormat
PixelFormat
Returns
- IBitmapSource
public static IBitmapSource CreateFormatConverter(this IBitmapSource source, in PixelFormat dstFormat, BitmapDitherType dither, IPalette palette, double alphaThresholdPercent, BitmapPaletteType paletteTranslate)
Parameters
source
IBitmapSource
dstFormat
PixelFormat
dither
BitmapDitherType
palette
IPalette
alphaThresholdPercent
double
paletteTranslate
BitmapPaletteType
Returns
- IBitmapSource
public static IBitmapSource<TPixelDst> CreateFormatConverter<TPixelDst>(this IBitmapSource source) where TPixelDst : unmanaged, INaturalPixelInfo
Parameters
source
IBitmapSource
Returns
- IBitmapSource<TPixelDst>
Type Parameters
TPixelDst
public static IBitmapSource<TPixelDst> CreateFormatConverter<TPixelDst>(this IBitmapSource source, BitmapDitherType dither, IPalette palette, double alphaThresholdPercent, BitmapPaletteType paletteTranslate) where TPixelDst : unmanaged, INaturalPixelInfo
Parameters
source
IBitmapSource
dither
BitmapDitherType
palette
IPalette
alphaThresholdPercent
double
paletteTranslate
BitmapPaletteType
Returns
- IBitmapSource<TPixelDst>
Type Parameters
TPixelDst