1 instantiation of ColorPalette
System.Drawing.Common (1)
System\Drawing\Imaging\ColorPalette.cs (1)
70new((int)buffer[0], ARGB.ToColorArray(buffer.Slice(2, (int)buffer[1])));
23 references to ColorPalette
System.Drawing (1)
System.Drawing.cs (1)
77[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.ColorPalette))]
System.Drawing.Common (17)
GlobalUsings.cs (1)
21global using ColorPalette = System.Drawing.Imaging.ColorPalette;
System\Drawing\Bitmap.cs (6)
412/// Pointer to a <see cref="ColorPalette"/> that specifies the palette whose indexes are stored in the pixel data 420/// <see cref="ConvertFormat(PixelFormat, DitherType, PaletteType, ColorPalette?, float)"/> performs a nearest-color 441/// formats. You can pass a <see cref="ColorPalette"/> for non-indexed pixel formats, but it has no impact on the 450ColorPalette? palette = null, 509ColorPalette palette = ColorPalette.CreateOptimalPalette(paletteSize, hasAlpha, this);
System\Drawing\Image.cs (2)
594public ColorPalette Palette 609return ColorPalette.ConvertFromBuffer(buffer);
System\Drawing\Imaging\ColorPalette.cs (4)
48ColorPalette palette = InitializePalette(fixedPaletteType, 0, useTransparentColor: false, bitmap: null); 57public static ColorPalette CreateOptimalPalette(int colors, bool useTransparentColor, Bitmap bitmap) => 69internal static ColorPalette ConvertFromBuffer(ReadOnlySpan<uint> buffer) => 95internal static ColorPalette InitializePalette(
System\Drawing\Imaging\DitherType.cs (3)
16/// <see cref="Bitmap.ConvertFormat(PixelFormat, DitherType, PaletteType, ColorPalette?, float)"/> 24/// <see cref="Bitmap.ConvertFormat(PixelFormat, DitherType, PaletteType, ColorPalette?, float)"/> method. 67/// <see cref="Bitmap.ConvertFormat(PixelFormat, DitherType, PaletteType, ColorPalette?, float)"/> method.
System\Drawing\Imaging\ImageAttributes.cs (1)
454public void GetAdjustedPalette(ColorPalette palette, ColorAdjustType type)
System.Drawing.Common.Tests (5)
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
68ColorPalette cp = bmp.Palette;
mono\System.Drawing\BitmapTests.cs (3)
820ColorPalette pal = bmp.Palette; 854ColorPalette pal = bmp.Palette; 1128ColorPalette pal = bmp.Palette;
System\Drawing\BitmapTests.cs (1)
1454ColorPalette palette = bitmap.Palette;