I guess its noob question. I’m not so good with C++ maybe… or it’s too late night already and programming all day isn’t good)
But I have an Image created with some data. Now I want to copy it.
I try to create a new image:
Image *img = new Image();
img->initWithImageData(oldImage->getData(), oldImage->getDataLen());
But ofcource it’s not copying it, because oldImage->getData() just returns { return _data; }
I need a fast copy for reuse. How can I do that?