title: Problem in tiling image starting at different height using TextureBrush in C#
body: <p>I am trying to tile an image(16x16) over a Rectangle area of dimensions width=1000, height=16 using TextureBrush to get a strip like UI.  </p>
  
  <pre><code> Rectangle myIconDrawingRectangle = new Rectangle(x, y, 1000, 16);
   using (TextureBrush brush = new TextureBrush(myIcon, WrapMode.Tile))
   {
      e.Graphics.FillRectangle(brush, myIconDrawingRectangle );
   }
  </code></pre>
  
  <p>When I draw with x=0, y=0  tiling happens as expected starting from (0,0).</p>
  
  <p>When I draw with x=0, y=50 tiling starts at (0,50) but the the painting rectangle does not start with the start of the image. It starts with cropped portion of the image and then repeats. </p>
  
  <p>How to solve this?</p>
  
  <p>P.S: I do not want to tile it manually looping repeatedly over DrawImage.</p>