public static short GetColorIndex( DxfIndexedColor indexedColors, ArgbColor color, out int colorDifference) { return(DxfIndexedColor.GetColorIndex(indexedColors.colors, color, out colorDifference)); }
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))); } }
public short GetBestMatchingIndex(ArgbColor color) { int colorDifference; return(DxfIndexedColor.GetColorIndex(this.colors, color, out colorDifference)); }
internal static short GetColorIndex(ArgbColor color, out int colorDifference) { return(DxfIndexedColor.GetColorIndex(DxfIndexedColor.AcadClassicIndexedColors.colors, color, out colorDifference)); }
public static short GetColorIndex(ArgbColor color) { int colorDifference; return(DxfIndexedColor.GetColorIndex(color, out colorDifference)); }