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
factoryIImagingFactorysourceIBitmapSourcealgorithmColorQuantizationAlgorithmcolorCountintaddTransparentColorbool