Hi all,
I'm doing some image processing on a bitmap I load from an mbm file. The program computes different gradients of the image and eventually combines them in one. My question is now, what is the most efficient way to handle several temporary versions of one image?
Creating 6 CFbsBitmap (EGray256) in one function would probably cause a big overhead.
For some reason, if I try using pointers to hold the temp values (to copy them into the final image after all the processing is done), the app crashes without any error message:
Code:
TUint8 * tmp=new TUint8[imgSize];
iBitmap->LockHeap(ETrue); // lock global heap
TUint8* final = (TUint8*)iBitmap->DataAddress();
iBitmap->UnlockHeap(ETrue);
this works, and I can access "final", but trying something like
crashes it.
What is the most efficient way to store those temporary values? Is this just a standard C++ pointer problem?
Thanks for your help.