Пример #1
0
 public static short GetColorIndex(
     DxfIndexedColor indexedColors,
     ArgbColor color,
     out int colorDifference)
 {
     return(DxfIndexedColor.GetColorIndex(indexedColors.colors, color, out colorDifference));
 }
Пример #2
0
        internal static short smethod_0(WW.Cad.Model.Color color)
        {
            switch (color.ColorType)
            {
            case ColorType.ByLayer:
                return(256);

            case ColorType.ByBlock:
                return(0);

            case ColorType.None:
                return(0);

            default:
                return(DxfIndexedColor.GetColorIndex(color.ToArgbColor(DxfIndexedColorSet.AcadClassicIndexedColors)));
            }
        }
Пример #3
0
        public short GetBestMatchingIndex(ArgbColor color)
        {
            int colorDifference;

            return(DxfIndexedColor.GetColorIndex(this.colors, color, out colorDifference));
        }
Пример #4
0
 internal static short GetColorIndex(ArgbColor color, out int colorDifference)
 {
     return(DxfIndexedColor.GetColorIndex(DxfIndexedColor.AcadClassicIndexedColors.colors, color, out colorDifference));
 }
Пример #5
0
        public static short GetColorIndex(ArgbColor color)
        {
            int colorDifference;

            return(DxfIndexedColor.GetColorIndex(color, out colorDifference));
        }