Hi, i'm trying to write a function that enlarges a given two dimensional array horizontaly and Verticaly by different numbers. So far i have got this code. Bu it doesnt really work at the moment. Please help.
Code:
void BitMap::enlarge(int horiz, int vert)
{
bool temp[MaxSize][MaxSize];
temp[0][0]=true;
int m, k;
for (int i = 0; i<numrows; i++)
for (int j = 0; j <numcols; j++)
temp[m][k]=myGrid[i*horiz][j*vert];
for (int i = 0; i<m; i++)
for (int j = 0; j<k; j ++)
myGrid[i][j]=myGrid[i][j]+horiz;
}