How can I pass a copy of an image stored in an array to a scaling function? I have the scaling function, and it works fine, but if I pass the image to it like this:
scaleThis(imageArray[x])
the original image (stored in the array) gets scaled. This is not what I want, I only want to scale a copy of the original but I don't understand how to pass the image by value rather than by reference. Is there a way to do what I need to do?
Thanks,
James
scaleThis(imageArray[x])
the original image (stored in the array) gets scaled. This is not what I want, I only want to scale a copy of the original but I don't understand how to pass the image by value rather than by reference. Is there a way to do what I need to do?
Thanks,
James