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)
- 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.
- CreateColorTransformer(IBitmapSource, CicpColorSpace, IColorContext, in PixelFormat)
Color-transforms
source, whose colorimetry is described bysourceCicpColorSpace, into the given destination color context and pixel format.
- CreateColorTransformer<TPixelDst>(IBitmapSource, CicpColorSpace, IColorContext)
Color-transforms
source, whose colorimetry is described bysourceCicpColorSpace, into the given destination color context, with the output pixel format determined byTPixelDst.
- CreateColorTransformer<TPixel>(IBitmapSource<TPixel>, CicpColorSpace, IColorContext)
Color-transforms
source, whose colorimetry is described bysourceCicpColorSpace, into the given destination color context. The output pixel format is inferred fromsource's pixel format (TPixel).
- 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.