Method CreateSolidColorBitmap
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
CreateSolidColorBitmap(IImagingFactory, SizeInt32, in PixelFormat, ReadOnlySpan<byte>)
public static IBitmapSource CreateSolidColorBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat, ReadOnlySpan<byte> color)
Parameters
factoryIImagingFactorysizeSizeInt32pixelFormatPixelFormatcolorReadOnlySpan<byte>
Returns
CreateSolidColorBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel)
public static IBitmapSource<TPixel> CreateSolidColorBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size, TPixel color) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorysizeSizeInt32colorTPixel
Returns
- IBitmapSource<TPixel>
Type Parameters
TPixel