Table of Contents

Method CreateFormatConverter

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

CreateFormatConverter(IBitmapSource, in PixelFormat)

public static IBitmapSource CreateFormatConverter(this IBitmapSource source, in PixelFormat dstFormat)

Parameters

source IBitmapSource
dstFormat PixelFormat

Returns

IBitmapSource

CreateFormatConverter(IBitmapSource, in PixelFormat, BitmapDitherType, IPalette, double, BitmapPaletteType)

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

CreateFormatConverter<TPixelDst>(IBitmapSource)

public static IBitmapSource<TPixelDst> CreateFormatConverter<TPixelDst>(this IBitmapSource source) where TPixelDst : unmanaged, INaturalPixelInfo

Parameters

source IBitmapSource

Returns

IBitmapSource<TPixelDst>

Type Parameters

TPixelDst

CreateFormatConverter<TPixelDst>(IBitmapSource, BitmapDitherType, IPalette, double, BitmapPaletteType)

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