title: C# Importing Image Coordinates from C++ cfg file
body: <p>I have a cfg C++ file Contains this code</p>
  
  <pre><code>CreateObjectType("Namoo", "Unit")
  {
    MapObj()
    {
      TypeDisplay()
      {
        Image()
        {
          Image("if_game_portraits.tga", 210, 168, 42, 42);
          Mode("Centre");
        }
      }
    }
  }
  </code></pre>
  
  <p>How to import this coordinates?</p>
  
  <pre><code>Image("if_game_portraits.tga", 210, 168, 42, 42);
  </code></pre>
  
  <p>(x=210,y=168,width=42,height=42)</p>
  
  <p>to 
  DrawImage(src, new Rectangle(0, 0, width, height),
                                   new Rectangle(x, y, width, height),
                                   GraphicsUnit.Pixel);</p>
  
  <p>N.B: sometimes the code looks like this</p>
  
  <pre><code>TypeDisplay()
  {
    Image("if_game_portraits.tga", 210, 168, 42, 42);
  }
  </code></pre>