Table of Contents

Interface IImagingFactory

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.dll

Exposes methods used to create components for the Windows Imaging Component (WIC) such as decoders, encoders and pixel format converters.
See also: IWICImagingFactory IWICImagingFactory2

public interface IImagingFactory : IObjectRef, IIsDisposed, IDisposable, IInternalImpl
Inherited Members
Extension Methods

Methods

CreateBitmap(int, int, in PixelFormat)
CreateBitmap(int, int, in PixelFormat, BitmapAllocationOptions)
CreateBitmap(int, int, in PixelFormat, void*, int, nuint)
CreateBitmap(int, int, in PixelFormat, void*, int, nuint, BitmapAllocationOptions)
CreateBitmapClipper(IBitmapSource, RectInt32)
CreateBitmapFlipRotator(IBitmapSource, BitmapTransformOptions)
CreateBitmapFromHBitmap(nint, nint, BitmapAlphaChannelOption)

Creates an IBitmap from a GDI bitmap handle.

CreateBitmapFromHIcon(nint)

Creates an IBitmap from a GDI icon handle.

CreateBitmapScaler(IBitmapSource, int, int, BitmapInterpolationMode)
CreateColorContext(ExifColorSpace)
CreateColorContext(ReadOnlySpan<byte>)
CreateColorTransformedBitmap(IBitmapSource, IColorContext, IColorContext, in PixelFormat)
CreateComponentEnumerator(ImagingComponentType, ImagingComponentEnumerateOptions)
CreateComponentInfo(in ImagingComponentID)
CreateDecoder(Stream, BitmapDecodeOptions, in ContainerFormat?, in VendorID?)
CreateDecoderInfo(in ContainerFormat, in VendorID?)
CreateEncoder(Stream, in ContainerFormat, in VendorID?)
CreateEncoderInfo(in ContainerFormat, in VendorID?)
CreateFastMetadataEncoderFromDecoder(IBitmapDecoder)
CreateFastMetadataEncoderFromFrameDecode(IBitmapFrameDecode)
CreateFormatConvertedBitmap(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.

CreateImageEncoder(IDevice)
CreatePalette(BitmapPaletteType, bool)
CreatePalette(ReadOnlySpan<ColorBgra32>)
CreatePaletteFromBitmap(IBitmapSource, int, bool)

Initializes a palette using a computed optimized values based on the reference bitmap.

CreateQueryWriter(in MetadataFormat, in VendorID?)
CreateQueryWriterFromReader(IMetadataQueryReader, in VendorID?)