Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Exactly that. Be warned that this makes a shallow copy. Any changes you make to the image inside the function will be there when the function finishes. You will need to use .clone() to make a deep copy if that is what you need.