<PackageReference Include="System.Drawing.Common" Version="8.0.10" />

ColorMap

public sealed class ColorMap
Defines a map for converting colors. Several methods of the ImageAttributes class adjust image colors by using a color-remap table, which is an array of ColorMap structures. Not inheritable.
public Color NewColor { get; set; }

Gets or sets the new Color structure to which to convert.

public Color OldColor { get; set; }

Gets or sets the existing Color structure to be converted.

public ColorMap()

Initializes a new instance of the ColorMap class.