void OnPaintRadar(Object sender, PaintEventArgs e) { foreach (var item in tinyPics) { TinyPic tp = item.Value; e.Graphics.DrawImageUnscaled(tp.Picture, tp.X, tp.Y); } }
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)); } }
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); } }