コード例 #1
0
ファイル: DrawPath.cs プロジェクト: miphas/SmartCarB
 /// <summary>
 /// 构造路径信息
 /// </summary>
 /// <param name="map"></param>
 public DrawPath(MapModel map, DrawFormat format)
 {
     this.map    = map;
     this.format = format;
     this.path   = new Bitmap(format.Width, format.Height);
     this.draw(map);
 }
コード例 #2
0
 /// <summary>
 /// constructor with DrawPath
 /// </summary>
 public DrawPolygon(MapModel mapModel, DrawFormat format)
 {
     // save path image and mapmodel
     this.mapModel = mapModel;
     this.format   = format;
     // try to draw background of path here
     img = new Bitmap(format.Width, format.Height);
     this.draw(mapModel);
 }