Class ImagingFactoryExtensions
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Framework.dll
public static class ImagingFactoryExtensions
- Inheritance
-
ImagingFactoryExtensions
- Inherited Members
Methods
- 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.
- CreateColorContext(IImagingFactory, DeviceColorSpace)
Creates an sRGB or scRGB color context.
- CreateDefaultColorContext(IImagingFactory, in PixelFormat)
Creates the default color context for the given pixel format.
- 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.
- 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.