Table of Contents

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 IImagingFactory
source IBitmapSource
dstFormat PixelFormat

Returns

IBitmapSource

CreateFormatConvertedBitmap<TPixelDst>(IImagingFactory, IBitmapSource)

public static IBitmapSource<TPixelDst> CreateFormatConvertedBitmap<TPixelDst>(this IImagingFactory factory, IBitmapSource source) where TPixelDst : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
source 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 IImagingFactory
source IBitmapSource
dither BitmapDitherType
palette IPalette
alphaThresholdPercent double
paletteTranslate BitmapPaletteType

Returns

IBitmapSource<TPixelDst>

Type Parameters

TPixelDst