Exemple #1
0
        internal static DxfIndexedColorSet smethod_13(ArgbColor backgroundColor)
        {
            backgroundColor.A = byte.MaxValue;
            ArgbColor[] indexedColors = (ArgbColor[])DxfIndexedColor.Color.Clone();
            ArgbColor   argbColor     = ArgbColor.IsBrightColor(backgroundColor) ? ArgbColors.Black : ArgbColors.White;

            for (int index = 1; index < 256; ++index)
            {
                if (indexedColors[index] == backgroundColor)
                {
                    indexedColors[index] = argbColor;
                }
            }
            return(new DxfIndexedColorSet(indexedColors));
        }
Exemple #2
0
 public CorrectIndexedBackgroundPlotStyleProvider(ArgbColor backgroundColor)
 {
     this.argbColor_0 = backgroundColor;
     this.argbColor_1 = ArgbColor.IsBrightColor(backgroundColor) ? ArgbColors.Black : ArgbColors.White;
 }