Mapstache.Utf8Grid.CreateBrush C# (CSharp) 메소드

CreateBrush() 공개 정적인 메소드

public static CreateBrush ( int p ) : Brush
p int
리턴 System.Drawing.Brush
        public static Brush CreateBrush(int p)
        {
            var color = IntToRgb(p);
            var brush = new SolidBrush(color);
            return brush;
        }

Usage Example

예제 #1
0
파일: Utf8Grid.cs 프로젝트: hnjm/mapstache
 public void FillPolygon(SqlGeography geography, int i, object data = null)
 {
     using (var gp = _graphicsPathBuilder.Build(geography))
         using (var brush = Utf8Grid.CreateBrush(i))
         {
             _graphics.FillPath(brush, gp);
         }
     if (data != null)
     {
         this.Data.Add(i.ToString(), data);
     }
 }