Method sets the first color to the black color, the second color to the white color.
If palette contains more than 2 colors, the third and next colors are set to 0.
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5