예제 #1
0
 public Font GetFont(Counter word)
 {
     var cnt = word.Count;
     var lgcnt = Math.Log(cnt, 2) + 1;
     return new Font(FontFamily, (int)(Math.Round(GetCount(word) * MultipleSize)));
 }
 public Pen GetPen(Counter word)
 {
     return new Pen(Color.Red, 1);
 }
예제 #3
0
 public double GetCount(Counter word)
 {
     return (Log ? Math.Log(word.Count, 2) + 1 : word.Count);
 }