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, uint)
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, uint, 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)
CreateBitmapScaler(IImagingFactory, IBitmapSource, SizeInt32, BitmapInterpolationMode)
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, SizeInt32, BitmapInterpolationMode)
CreateBitmapScaler<TPixel>(IImagingFactory, IBitmapSource<TPixel>, int, int, BitmapInterpolationMode)
CreateBitmap<TPixel>(IImagingFactory, SizeInt32)
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, BitmapAllocationOptions)
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, uint)
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, uint, BitmapAllocationOptions)
CreateBitmap<TPixel>(IImagingFactory, int, int)
CreateBitmap<TPixel>(IImagingFactory, int, int, BitmapAllocationOptions)
CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, uint)
CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, uint, BitmapAllocationOptions)
CreateColorContext(IImagingFactory, DeviceColorSpace)

Creates an sRGB or scRGB color context.

CreateColorContext(IImagingFactory, KnownColorSpace)
CreateColorContext(IImagingFactory, IReadOnlyList<byte>)
CreateColorContext(IImagingFactory, IReadOnlyList<byte>, int, int)
CreateColorTransformedBitmap<TDstPixel>(IImagingFactory, IBitmapSource, IColorContext, IColorContext)
CreateCustomPalette(IImagingFactory, IReadOnlyList<ColorBgra32>)
CreateCustomPalette(IImagingFactory, IReadOnlyList<ColorBgra32>, int, int)
CreateDefaultColorContext(IImagingFactory, in PixelFormat)

Creates the default color context for the given pixel format.

CreateFormatConvertedBitmap(IImagingFactory, IBitmapSource, in PixelFormat)
CreateFormatConvertedBitmap<TPixelDst>(IImagingFactory, IBitmapSource)
CreateFormatConvertedBitmap<TPixelDst>(IImagingFactory, IBitmapSource, BitmapDitherType, IPalette?, double, BitmapPaletteType)
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.

CreatePixelFormatInfo(IImagingFactory, in PixelFormat)
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 contex 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.