Scaling up an image
<p>This does not segment fault, but it is not reading the pixels of the "original" file.</p>

<pre><code>Image Image::scaleUp(int numTimes) const
{
        Image newImage(width*numTimes, height*numTimes);
        newImage.createImage(width*numTimes, height*numTimes);

        for (int x = 0; x &lt; width; x++) {
            for (int y = 0; y &lt; height; y++) {
                for(int inner_x = 0; inner_x &lt; numTimes; inner_x++){
                    for (int inner_y = 0; inner_y &lt; numTimes; inner_y++){
                        newImage.pixelData[x*numTimes+inner_x][y*numTimes+inner_y] = pixelData[x][y];
                    }
                }
            }
        }
    return newImage;
}
</code></pre>

<p>Solved now * (*except my image comes out in b/w)</p>
