Table of Contents

Method CreatePaletteFromBitmap

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll

CreatePaletteFromBitmap(IImagingFactory, IBitmapSource, ColorQuantizationAlgorithm, int, bool)

public static IPalette CreatePaletteFromBitmap(this IImagingFactory factory, IBitmapSource source, ColorQuantizationAlgorithm algorithm, int colorCount, bool addTransparentColor)

Parameters

factory IImagingFactory
source IBitmapSource
algorithm ColorQuantizationAlgorithm
colorCount int
addTransparentColor bool

Returns

IPalette