Table of Contents

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

factory IImagingFactory
size SizeInt32
pixelFormat PixelFormat
color ReadOnlySpan<byte>

Returns

IBitmapSource

CreateSolidColorBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel)

public static IBitmapSource<TPixel> CreateSolidColorBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size, TPixel color) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
size SizeInt32
color TPixel

Returns

IBitmapSource<TPixel>

Type Parameters

TPixel