I add a Layer to ImageEnView1 which has the same dimensions as ImageEnView1 to cover it completely:
imgMain.LayersAdd(iesRectangle, 0, 0, imgMain.IEBitmap.Width, imgMain.IEBitmap.Height);
Then, when I zoom-in or zoom-out ImageEnView1, the Layer dimensions seem to follow the dimensions of ImageEnView1, as if the Layer was "magnetically" attached to the ImageEnView1.
1. Is this magnetic attachment of the Layer to ImageEnView1 the normal behavior and will this behavior occur under all circumstances?
But then, when I load another image in ImageEnView1, the Layer keeps its size from the previous image but staying at the same top-left position.
2. Is there a way to automatically set the dimensions of the Layer to the new image loaded in ImageEnView1 or do I have to do that manually?