I used the scale() method and I tried creating variables for the width and height, then putting it in a for loop so width and height increase by one, but the scale does not change.
int width= 30;
int height= 30;
for(y= getY(); y>=358; y++)
{
width+=2;
img.scale(width, height);
}

