Class ImagingFactoryExtensions
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Framework.dll
public static class ImagingFactoryExtensions
- Inheritance
-
ImagingFactoryExtensions
- Inherited Members
Methods
- CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, nuint, BitmapAllocationOptions)
- 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.
- 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.
- 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.
- CreateColorTransformedBitmap(IImagingFactory, IBitmapSource, CicpColorSpace, IColorContext, in PixelFormat)
Color-transforms
source, whose colorimetry is described bysourceCicpColorSpace, into the given destination color context and pixel format.
- CreateColorTransformedBitmap<TPixelDst>(IImagingFactory, IBitmapSource, CicpColorSpace, IColorContext)
Color-transforms
source, whose colorimetry is described bysourceCicpColorSpace, into the given destination color context, with the output pixel format determined byTPixelDst.
- CreateColorTransformedBitmap<TPixel>(IImagingFactory, 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).
- 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.
- 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
nullwill be returned.