title: 2 dimensional array with multiple values for each x and y
body: <p>I am looking to create a 2-dimensional array that remaps a texture. So for each pixel it will store a hsv value so that it can be recreated programmatically. (In C# preferrably)
  My question is is there an algorithm/code (Linq/ArrayList etc) that would enlarge the resulting array and therefore image - ie: by a factor of ten for example.</p>
  
  <p>Current code for recreating 1 to 1 (this is the loop):</p>
  
  <pre><code>imageHueArray = new float[width,height];
  for (int i = 0; i &lt; img.width; i++)
  {
      for (int j = 0; j &lt; img.height; j++)
      {
          imageHueArray[i,j] = pixelH;
      }
  }
  </code></pre>
  
  <p>New edit:
  I have attempted new code based on some suggestions and links I looked at - I think it is getting closer, but not there yet (any better suggestions appreciated).
  I replaced j with z in the array when loops through i in outer loop (as outside j loop).
  This code increases size of image, but the increase portion is only blank (or at least using a fixed pixel, 0,0 perhaps) - I think it is in issue with the i/x plane as this does not seem to loop correctly, although the code looks okay (to me).</p>
  
  <pre><code>for (var i = 0; i &lt; newRows; i++) {
      for (var j = 0; j &lt; newCols; j++) {
          for (var k = 0; k &lt; resizeScale; k++) {
           imageHueArray[i,j] = pixelHSV;
          }
          z=j;
      }
      for (var k = 0; k &lt; resizeScale; k++) {
          imageHueArray[i,z] = pixelHSV;
      }
  }
  </code></pre>