Hi! I want to assign a TIEBitmap to another TIEBitmap without actually copying the bitmap just take over the source pointer. I asume I should use TIEBitmap.EncapsulateMemory(), is there some other way to do it? And if I use bitmapA.EncapsulateMemory(bitmapB,...DoFreeImage=true) and the delete bitmapB what happens to bitmapA? do I destroy it?
you don't have to use encapsulation when you have two TIEBitmaps. Encapsulation is required when you have TBitmap and you want to use some TIEBitmap specific methods on TBitmap.
Hi again, To clerify things, we want to make one TIEbitmap take over the bitmap o another TIEbitmap. The latter will then be deleted. ( this is part of a strategy to avoid holes in the heap) //Christer