title: How can I create a border/frame around an image?
body: <p>My code:</p>
  
  <pre><code>private void CreateAnimatedGif(List&lt;string&gt; GifsFilesRadar , List&lt;string&gt; GifsFilesSatellite)//string FileName1 , string FileName2)
  {
      Bitmap bitmap = null;
      DirectoryInfo inf = new DirectoryInfo(tempGifFiles);
      FileInfo[] fi = inf.GetFiles("*.gif");
      for (int i = 0; i &lt; fi.Length; i++)
      {
          Bitmap file1 = new Bitmap(GifsFilesRadar[i]);
          Bitmap file2 = new Bitmap(GifsFilesSatellite[i]);
          //calculate the new width proportionally to the new height it will have
          int newWidth = file1.Width + file1.Width / (file2.Height / (file2.Height - file1.Height));
  
          bitmap = new Bitmap(newWidth + file2.Width, Math.Max(file1.Height, file2.Height));
          using (Graphics g = Graphics.FromImage(bitmap))
          {
              //high quality rendering and interpolation mode
              g.SmoothingMode = SmoothingMode.HighQuality;
              g.PixelOffsetMode = PixelOffsetMode.HighQuality;
              g.InterpolationMode = InterpolationMode.HighQualityBicubic;
  
              //resize the left image
              g.DrawImage(file1, new Rectangle(0, 0, newWidth, file2.Height));
              g.DrawImage(file2, newWidth, 0);
              string t = @"d:\GifsForAnimations" + "\\" + i.ToString("D6") + ".Gif";
              bitmap.Save(t, System.Drawing.Imaging.ImageFormat.Gif);
              if (i == 4)
              {
                  break;
              }
          }
      }
      List&lt;string&gt; gif = new List&lt;string&gt;();
      DirectoryInfo info = new DirectoryInfo(@"d:\GifsForAnimations");
      FileInfo[] finfo = info.GetFiles();
      for (int i = 0; i &lt; finfo.Length; i++)
      {
          gif.Add(finfo[i].FullName);
      }
      newFile.MakeGIF(gif, @"d:\newGifAnim.gif", 80, true);
  }
  </code></pre>
  
  <p>In the end I have new animated gif file.
  Now I have the border and these are the locations:</p>
  
  <ul>
  <li>Bottom left corner: 232.0,408.0</li>
  <li>Top left corner: 232.0,211.0</li>
  <li>Top right corner: 524.0,211.0</li>
  <li>Bottom right corner: 524.0,408.0</li>
  </ul>
  
  <p>I want to add on each image a frame around it to mark the border around. Let's say the border will be in Red and the border line size will be 5 pixels.</p>
  
  <p>How can I create the rectangle around existing bitmap or gif file ?
  It doesn't have to be connected to my example code here but how do I create the frame/border around the image with the locations I have ?</p>