1 instantiation of ColorPalette
System.Drawing.Common (1)
System\Drawing\Imaging\ColorPalette.cs (1)
70
new
((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)
21
global 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
450
ColorPalette
? palette = null,
509
ColorPalette
palette =
ColorPalette
.CreateOptimalPalette(paletteSize, hasAlpha, this);
System\Drawing\Image.cs (2)
594
public
ColorPalette
Palette
609
return
ColorPalette
.ConvertFromBuffer(buffer);
System\Drawing\Imaging\ColorPalette.cs (4)
48
ColorPalette
palette = InitializePalette(fixedPaletteType, 0, useTransparentColor: false, bitmap: null);
57
public static
ColorPalette
CreateOptimalPalette(int colors, bool useTransparentColor, Bitmap bitmap) =>
69
internal static
ColorPalette
ConvertFromBuffer(ReadOnlySpan<uint> buffer) =>
95
internal 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)
454
public void GetAdjustedPalette(
ColorPalette
palette, ColorAdjustType type)
System.Drawing.Common.Tests (5)
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
68
ColorPalette
cp = bmp.Palette;
mono\System.Drawing\BitmapTests.cs (3)
820
ColorPalette
pal = bmp.Palette;
854
ColorPalette
pal = bmp.Palette;
1128
ColorPalette
pal = bmp.Palette;
System\Drawing\BitmapTests.cs (1)
1454
ColorPalette
palette = bitmap.Palette;