| | |
| | | /// 获取rgb颜色 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public int GetRGBcolor(Function function ,string rgbString ="") |
| | | public int GetRGBcolor(string rgbString) |
| | | { |
| | | var color = function.GetAttrState(FunctionAttributeKey.RGB).Split(","); |
| | | if(!string.IsNullOrEmpty(rgbString)) |
| | | { |
| | | color = rgbString.Split(","); |
| | | } |
| | | //var color = function.GetAttrState(FunctionAttributeKey.RGB).Split(","); |
| | | //if(!string.IsNullOrEmpty(rgbString)) |
| | | //{ |
| | | var color = rgbString.Split(","); |
| | | //} |
| | | if(color.Length!= 3) |
| | | { |
| | | color = new string[] {"100", "100", "100" }; |
| | | color = new string[] {"255", "255", "255" }; |
| | | } |
| | | int redColor = 0; |
| | | int greenColor = 0; |