I am trying to copy a CImage
so that I can do some manipulation with it's pixels. I've tried this where source
is a pointer to a loaded CImage object.
CImage* dest = new CImage(*source);
However this doesn't seem to work and I believe source
and dest
are pointing to the same memory.
How would I create a new copy totally detached from the previous CImage?