Table of Contents

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 IImagingFactory
colors IReadOnlyList<ColorBgra32>

Returns

IPalette

CreatePalette(IImagingFactory, IReadOnlyList<ColorBgra32>, int, int)

public static IPalette CreatePalette(this IImagingFactory factory, IReadOnlyList<ColorBgra32> colors, int startIndex, int length)

Parameters

factory IImagingFactory
colors IReadOnlyList<ColorBgra32>
startIndex int
length int

Returns

IPalette