Ejemplo n.º 1
0
 private void BtnSetLeftPos_Click(object sender, EventArgs e)
 {
     if (currentPosition == null)
     {
         return;
     }
     tile1           = currentPosition;
     txtLeftPos.Text = tile1.ToString();
 }
Ejemplo n.º 2
0
        public void draw()           //rc_draw.pike
        {
            Globe.stat("OverlayBase : draw()");
            bmp = new Bitmap(bmp.Width, bmp.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
            Graphics bb = Graphics.FromImage(bmp);

            bb.Clear(BackColor);
            HPoint b = new HPoint(panel1.Location);

            Globe.stat(b.ToString());
            bb.DrawImage(bmp, -b);
            panel1.BackColor       = BackColor;
            panel1.BackgroundImage = bmp;
            if (Spl != null)
            {
                Location = Spl.Location;
            }
        }