コード例 #1
0
 public LayerSettings()
 {
     PointSymbolType = new DbPointSymbolType {PointSymbolTypeAsInt = Random.Next(8)};
     Color curColor;
     while (true)
     {
         curColor = ColorExtensions.GetRandomNamedColor();
         if (LumaChromaColor.FromColor(curColor).Y >= 0.5f) break;
     }
     LineOrSymbolDbColor = new DbColor(curColor);
     AreaDbColor = new DbColor(Colors.Transparent);
 }
コード例 #2
0
 public SedimentTypeNode()
 {
     SymbolColor = new DbColor(ColorExtensions.GetRandomNamedColor());
     PointSymbolType = new DbPointSymbolType { PointSymbolTypeAsInt = Random.Next(8) };
 }