Table of Contents

Class BitmapSourceExtensions

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll
public static class BitmapSourceExtensions
Inheritance
BitmapSourceExtensions
Inherited Members

Methods

Bounds(IBitmapSource)

Returns a rectangle who's value is (x=0, y=0, width=source.Width, height=source.Height)

Cast(IBitmapSource, in PixelFormat)
Cast<TPixel>(IBitmapSource)
CopyPixels(IBitmapSource, IBitmapLock)
CopyPixels(IBitmapSource, IBitmapLock, Point2Int32)
CopyPixels(IBitmapSource, void*, int, nint, in RectInt32?)
CopyPixels(IBitmapSource, void*, int, nuint, in RectInt32?)
CopyPixels<TPixel>(IBitmapSource<TPixel>, ExtentPtr<TPixel>, Point2Int32)
CopyPixels<TPixel>(IBitmapSource<TPixel>, IBitmapLock)
CopyPixels<TPixel>(IBitmapSource<TPixel>, IBitmapLock, Point2Int32)
CopyPixels<TPixel>(IBitmapSource<TPixel>, RegionPtr<TPixel>)
CopyPixels<TPixel>(IBitmapSource<TPixel>, RegionPtr<TPixel>, Point2Int32)
CreateChannelExtractor(IBitmapSource, int, in PixelFormat)
CreateChannelExtractor<TPixelOutput>(IBitmapSource, int)
CreateChannelReplacer(IBitmapSource, int, IBitmapSource)
CreateChannelReplacer<TPixel>(IBitmapSource<TPixel>, int, IBitmapSource)
CreateClipper(IBitmapSource, Point2Int32)
CreateClipper(IBitmapSource, RectInt32)
CreateClipper(IBitmapSource, SizeInt32)
CreateClipper<TPixel>(IBitmapSource<TPixel>, Point2Int32)
CreateClipper<TPixel>(IBitmapSource<TPixel>, RectInt32)
CreateClipper<TPixel>(IBitmapSource<TPixel>, RectInt32, BitmapExtendMode)

Creates a clipped bitmap with a given extend mode. The clipping rect may extend outside of the source bounds.

CreateClipper<TPixel>(IBitmapSource<TPixel>, SizeInt32)
CreateColorTransformer(IBitmapSource, SimpleColorProfile, IColorContext, in PixelFormat)
CreateColorTransformer(IBitmapSource, DxgiColorSpace, IColorContext, in PixelFormat)
CreateColorTransformer(IBitmapSource, CicpColorSpace, IColorContext, in PixelFormat)

Color-transforms source, whose colorimetry is described by sourceCicpColorSpace, into the given destination color context and pixel format.

CreateColorTransformer(IBitmapSource, IColorContext, IColorContext, in PixelFormat)
CreateColorTransformer<TPixelDst>(IBitmapSource, SimpleColorProfile, IColorContext)
CreateColorTransformer<TPixelDst>(IBitmapSource, DxgiColorSpace, IColorContext)
CreateColorTransformer<TPixelDst>(IBitmapSource, CicpColorSpace, IColorContext)

Color-transforms source, whose colorimetry is described by sourceCicpColorSpace, into the given destination color context, with the output pixel format determined by TPixelDst.

CreateColorTransformer<TPixel>(IBitmapSource, IColorContext, IColorContext)
CreateColorTransformer<TPixel>(IBitmapSource<TPixel>, SimpleColorProfile, IColorContext)
CreateColorTransformer<TPixel>(IBitmapSource<TPixel>, DxgiColorSpace, IColorContext)
CreateColorTransformer<TPixel>(IBitmapSource<TPixel>, CicpColorSpace, IColorContext)

Color-transforms source, whose colorimetry is described by sourceCicpColorSpace, into the given destination color context. The output pixel format is inferred from source's pixel format (TPixel).

CreateColorTransformer<TPixel>(IBitmapSource<TPixel>, IColorContext, IColorContext)
CreateFlipRotator(IBitmapSource, BitmapTransformOptions)
CreateFlipRotator<TPixel>(IBitmapSource<TPixel>, BitmapTransformOptions)
CreateFormatConverter(IBitmapSource, in PixelFormat)

Converts a bitmap from one pixel format to another, handling dithering and halftoning to indexed formats, palette translation, and alpha thresholding.

For more information, see IWICFormatConverter::Initialize.

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

Converts a bitmap from one pixel format to another, handling dithering and halftoning to indexed formats, palette translation, and alpha thresholding.

For more information, see IWICFormatConverter::Initialize.

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

Converts a bitmap from one pixel format to another, handling dithering and halftoning to indexed formats, palette translation, and alpha thresholding.

For more information, see IWICFormatConverter::Initialize.

CreateFormatConverter<TPixelDst>(IBitmapSource)

Converts a bitmap from one pixel format to another, handling dithering and halftoning to indexed formats, palette translation, and alpha thresholding.

For more information, see IWICFormatConverter::Initialize.

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

Converts a bitmap from one pixel format to another, handling dithering and halftoning to indexed formats, palette translation, and alpha thresholding.

For more information, see IWICFormatConverter::Initialize.

CreateFormatConverter<TDstPixel>(IBitmapSource, BitmapDitherType, int, IPalette?, double, BitmapPaletteType)

Converts a bitmap from one pixel format to another, handling dithering and halftoning to indexed formats, palette translation, and alpha thresholding.

For more information, see IWICFormatConverter::Initialize.

CreateScaler(IBitmapSource, SizeInt32, BitmapInterpolationMode)
CreateScaler(IBitmapSource, SizeInt32, BitmapInterpolationMode2)
CreateScaler(IBitmapSource, int, int, BitmapInterpolationMode)
CreateScaler<TPixel>(IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode)
CreateScaler<TPixel>(IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode2)
CreateScaler<TPixel>(IBitmapSource<TPixel>, int, int, BitmapInterpolationMode)
ToBitmap(IBitmapSource)
ToBitmap(IBitmapSource, RectInt32)
ToBitmap<TPixel>(IBitmapSource<TPixel>)
ToBitmap<TPixel>(IBitmapSource<TPixel>, RectInt32)