// - - - - - - - - - - - - - - - - - - - - - - - - public static void Init(this PictureBox pb) { GUI.pb = pb; xoffset = yoffset = pointsize / 2; width = pb.Width - pointsize; height = pb.Height - pointsize; b = new Bitmap(width + pointsize, height + pointsize); g = Graphics.FromImage(b); pb.Clear(); pb.Image = b; }