コード例 #1
0
 void OnPaintRadar(Object sender, PaintEventArgs e)
 {
     foreach (var item in tinyPics)
     {
         TinyPic tp = item.Value;
         e.Graphics.DrawImageUnscaled(tp.Picture, tp.X, tp.Y);
     }
 }
コード例 #2
0
 void AddPic(String path, int x, int y)
 {
     if (File.Exists(path))
     {
         var tp = new TinyPic(Image.FromFile(path), x, y);
         tinyPics[path] = tp;
         myRadarBox.Invalidate(new Rectangle(x, y, tp.Width, tp.Height));
     }
 }
コード例 #3
0
 void AddPic(String path, int x, int y)
 {
     if (File.Exists(path))
     {
         var tp = new TinyPic(Image.FromFile(path), x, y);
         tinyPics[path] = tp;
         myRadarBox.Invalidate(tp.Bounds);
     }
 }