I am trying to add an Image Layer that contains the current image from the clipboard:
ImageEnViewDummy.Proc.PasteFromClipboard();
var NewLayer := ImageEnViewMain.LayersAdd(ielkImage);
ImageEnViewMain.Layers[NewLayer].Assign(ImageEnViewDummy.Layers[0]);
ImageEnViewMain.Layers[NewLayer].Selectable := True;
ImageEnViewMain.Layers[NewLayer].Selected := True;
ImageEnViewMain.MouseInteractLayers := [mlMoveLayers, mlResizeLayers, mlRotateLayers];
1. The Image Layer is created with the image from the clipboard. However, the Layer cannot be moved, resized, or rotated. Nor does it have any handles. Why?
2. Isn't there a simple built-in method to add an Image Layer that contains the current image from the clipboard?