Table of Contents

Class ImagingFactoryExtensions

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Framework.dll
public static class ImagingFactoryExtensions
Inheritance
ImagingFactoryExtensions
Inherited Members

Methods

CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat)
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, BitmapAllocationOptions)
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, nuint)
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, nuint, BitmapAllocationOptions)
CreateBitmapClipper<TPixel>(IImagingFactory, IBitmapSource<TPixel>, RectInt32)
CreateBitmapClipper<TPixel>(IImagingFactory, IBitmapSource<TPixel>, RectInt32, BitmapExtendMode)

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

CreateBitmapFlipRotator<TPixel>(IImagingFactory, IBitmapSource<TPixel>, BitmapTransformOptions)
CreateBitmapFromChannels(IImagingFactory, in PixelFormat, params ReadOnlySpan<IBitmapSource>)
CreateBitmapFromChannels<TPixel>(IImagingFactory, params ReadOnlySpan<IBitmapSource>)
CreateBitmapScaler(IImagingFactory, IBitmapSource, SizeInt32, BitmapInterpolationMode)
CreateBitmapScaler(IImagingFactory, IBitmapSource, SizeInt32, BitmapInterpolationMode2)
CreateBitmapScaler(IImagingFactory, IBitmapSource, int, int, BitmapInterpolationMode2)
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode)
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode2)
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, int, int, BitmapInterpolationMode)
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, int, int, BitmapInterpolationMode2)
CreateBitmap<TPixel>(IImagingFactory, RegionPtr<TPixel>)

Creates a bitmap by copying the pixel data from the given region.

CreateBitmap<TPixel>(IImagingFactory, RegionPtr<TPixel>, BitmapAllocationOptions)

Creates a bitmap by copying the pixel data from the given region.

CreateBitmap<TPixel>(IImagingFactory, SizeInt32)
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, BitmapAllocationOptions)
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, nuint)
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, nuint, BitmapAllocationOptions)
CreateBitmap<TPixel>(IImagingFactory, int, int)
CreateBitmap<TPixel>(IImagingFactory, int, int, BitmapAllocationOptions)
CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, nuint)
CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, nuint, BitmapAllocationOptions)
CreateChannelExtractedBitmap(IImagingFactory, IBitmapSource, int, in PixelFormat)
CreateChannelExtractedBitmap<TPixelOutput>(IImagingFactory, IBitmapSource, int)
CreateChannelReplacedBitmap(IImagingFactory, IBitmapSource, int, IBitmapSource)
CreateChannelReplacedBitmap<TPixel>(IImagingFactory, IBitmapSource<TPixel>, int, IBitmapSource)
CreateColorContext(IImagingFactory, DeviceColorSpace)

Creates an sRGB or scRGB color context.

CreateColorContext(IImagingFactory, IDeviceColorContext)

Creates a color context with the same color space as the given Direct2D color context.

CreateColorContext(IImagingFactory, in SimpleColorProfile)

Creates a color context from a simple (primaries-and-gamma) color profile by synthesizing the equivalent ICC profile.

CreateColorContext(IImagingFactory, CicpColorSpace)

Creates an IColorContext describing the given CICP color information by synthesizing the corresponding PaintDotNet.Imaging.IColorProfile and returning its color context.

CreateColorContext(IImagingFactory, KnownColorSpace)
CreateColorContext(IImagingFactory, IReadOnlyList<byte>)
CreateColorContext(IImagingFactory, IReadOnlyList<byte>, int, int)
CreateColorTransformedBitmap(IImagingFactory, IBitmapSource, SimpleColorProfile, IColorContext, in PixelFormat)
CreateColorTransformedBitmap(IImagingFactory, IBitmapSource, DxgiColorSpace, IColorContext, in PixelFormat)
CreateColorTransformedBitmap(IImagingFactory, IBitmapSource, CicpColorSpace, IColorContext, in PixelFormat)

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

CreateColorTransformedBitmap<TPixelDst>(IImagingFactory, IBitmapSource, SimpleColorProfile, IColorContext)
CreateColorTransformedBitmap<TPixelDst>(IImagingFactory, IBitmapSource, DxgiColorSpace, IColorContext)
CreateColorTransformedBitmap<TPixelDst>(IImagingFactory, 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.

CreateColorTransformedBitmap<TDstPixel>(IImagingFactory, IBitmapSource, IColorContext, IColorContext)
CreateColorTransformedBitmap<TPixel>(IImagingFactory, IBitmapSource<TPixel>, SimpleColorProfile, IColorContext)
CreateColorTransformedBitmap<TPixel>(IImagingFactory, IBitmapSource<TPixel>, DxgiColorSpace, IColorContext)
CreateColorTransformedBitmap<TPixel>(IImagingFactory, 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).

CreateDefaultColorContext(IImagingFactory, in PixelFormat)

Creates the default color context for the given pixel format.

CreateFormatConvertedBitmap(IImagingFactory, 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.

CreateFormatConvertedBitmap(IImagingFactory, 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.

CreateFormatConvertedBitmap<TPixelDst>(IImagingFactory, 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.

CreateFormatConvertedBitmap<TPixelDst>(IImagingFactory, 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.

CreateFormatConvertedBitmap<TDstPixel>(IImagingFactory, 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.

CreateLinearizedColorContextOrScRgb(IImagingFactory, IColorContext)

Creates a linearized version of the given color context, or creates an scRGB color context if the given one cannot be linearized. See TryCreateLinearizedColorContext(IImagingFactory, IColorContext) for more information.

CreatePalette(IImagingFactory, IReadOnlyList<ColorBgra32>)
CreatePalette(IImagingFactory, IReadOnlyList<ColorBgra32>, int, int)
CreatePaletteFromBitmap(IImagingFactory, IBitmapSource, ColorQuantizationAlgorithm, int, bool)
CreatePixelFormatInfo(IImagingFactory, in PixelFormat)
CreateSolidColorBitmap(IImagingFactory, SizeInt32, in PixelFormat, ReadOnlySpan<byte>)
CreateSolidColorBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel)
TryCreateDefaultColorContext(IImagingFactory, in PixelFormat)

Creates the default color context for the given pixel format, or returns null.

TryCreateDefaultColorContext(IImagingFactory, in PixelFormat, out IColorContext?)

Creates the default color context for the given pixel format, if possible.

TryCreateLinearizedColorContext(IImagingFactory, IColorContext)

Creates a linearized version of the given color context. This removes the transfer curve (TRC) and enables the use of linear gamma with most color contexts. If the color context is already linear, then this will simply return a new reference to it. If the color context cannot be linearized then null will be returned.