Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
 }