Method CreatePalette
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
CreatePalette(IImagingFactory, IReadOnlyList<ColorBgra32>)
public static IPalette CreatePalette(this IImagingFactory factory, IReadOnlyList<ColorBgra32> colors)
Parameters
factory
IImagingFactorycolors
IReadOnlyList<ColorBgra32>
Returns
CreatePalette(IImagingFactory, IReadOnlyList<ColorBgra32>, int, int)
public static IPalette CreatePalette(this IImagingFactory factory, IReadOnlyList<ColorBgra32> colors, int startIndex, int length)
Parameters
factory
IImagingFactorycolors
IReadOnlyList<ColorBgra32>startIndex
intlength
int