Method CreateFormatConvertedBitmap
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
CreateFormatConvertedBitmap(IImagingFactory, IBitmapSource, in PixelFormat)
public static IBitmapSource CreateFormatConvertedBitmap(this IImagingFactory factory, IBitmapSource source, in PixelFormat dstFormat)
Parameters
factory
IImagingFactorysource
IBitmapSourcedstFormat
PixelFormat
Returns
CreateFormatConvertedBitmap<TPixelDst>(IImagingFactory, IBitmapSource)
public static IBitmapSource<TPixelDst> CreateFormatConvertedBitmap<TPixelDst>(this IImagingFactory factory, IBitmapSource source) where TPixelDst : unmanaged, INaturalPixelInfo
Parameters
factory
IImagingFactorysource
IBitmapSource
Returns
- IBitmapSource<TPixelDst>
Type Parameters
TPixelDst
CreateFormatConvertedBitmap<TPixelDst>(IImagingFactory, IBitmapSource, BitmapDitherType, IPalette?, double, BitmapPaletteType)
public static IBitmapSource<TPixelDst> CreateFormatConvertedBitmap<TPixelDst>(this IImagingFactory factory, IBitmapSource source, BitmapDitherType dither, IPalette? palette, double alphaThresholdPercent, BitmapPaletteType paletteTranslate) where TPixelDst : unmanaged, INaturalPixelInfo
Parameters
factory
IImagingFactorysource
IBitmapSourcedither
BitmapDitherTypepalette
IPalettealphaThresholdPercent
doublepaletteTranslate
BitmapPaletteType
Returns
- IBitmapSource<TPixelDst>
Type Parameters
TPixelDst