private static Cmyk CreateCmyk(byte c, byte m, byte y, byte k, byte r, byte g, byte b) { if (MappingDictionary.ContainsKey(CmykToInt(c, m, y, k))) { } MappingDictionary.Add(CmykToInt(c, m, y, k), RgbToInt(r, g, b)); return(new Cmyk(c, m, y, k)); }
public string GetDefaultCodeOfChar(char str) { if (MappingDictionary != null && MappingDictionary.Count > 0) { if (MappingDictionary.ContainsKey(str)) { return(MappingDictionary[str][0]); } } //没有指定Mapping表,那么就按拼音处理 //return pinyinGenerater.GetDefaultCodeOfChar(str); return(null); }