PictureBox CreatePictureBox(IMapItem mi) { PictureBox picb = new PictureBox(); picb.Image = mi.GetBitmap(new Size(16, 16), null); picb.SizeMode = PictureBoxSizeMode.AutoSize; picb.Tag = (Object)mi; picb.MouseDown += new MouseEventHandler(PictureBox_MouseDown); return(picb); }
PictureBox CreatePictureBox(TemplateDoc tmpd, Size sizTile, IMapItem mi) { PictureBox picb = new PictureBox(); picb.Image = Misc.TraceEdges(mi.GetBitmap(sizTile, tmpd), 1, Color.Azure); picb.SizeMode = PictureBoxSizeMode.AutoSize; picb.Tag = (Object)mi; picb.MouseDown += new MouseEventHandler(PictureBox_MouseDown); return(picb); }
PictureBox CreatePictureBox(IMapItem mi) { PictureBox picb = new PictureBox(); picb.Image = mi.GetBitmap(new Size(16, 16), null); picb.SizeMode = PictureBoxSizeMode.AutoSize; picb.Tag = (Object)mi; picb.MouseDown += new MouseEventHandler(PictureBox_MouseDown); return picb; }
PictureBox CreatePictureBox(TemplateDoc tmpd, Size sizTile, IMapItem mi) { PictureBox picb = new PictureBox(); picb.Image = Misc.TraceEdges(mi.GetBitmap(sizTile, tmpd), 1, Color.Azure); picb.SizeMode = PictureBoxSizeMode.AutoSize; picb.Tag = (Object)mi; picb.MouseDown += new MouseEventHandler(PictureBox_MouseDown); return picb; }