ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Grip Points not showing after copying background

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
nwscomps Posted - Oct 22 2018 : 05:15:04
I copy the background layer with:

fCopyIEImgLayer := TIEImageLayer.Create(nil,0,0);
fCopyIEImgLayer.Assign(fCurrentIEView.CurrentLayer); //in this case background
fCopyIEImgLayer.Locked := false;

then paste the layer with:

if assigned(fCopyIEImgLayer) then
begin
fCurrentIEView.LayersCurrent := fCurrentIEView.LayersAdd(ielkImage);
fCurrentIEView.CurrentLayer.Assign(fCopyIEImgLayer);
end

Then set mouse interaction to:
[miMoveLayers, miResizeLayers]

At this point I cannot see the grip points to resize the layer. I can move the layer but I cannot see where to click to resize it.

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 24 2018 : 15:26:34
Hi

As it is the background layer, you will also need to set VisibleBox to true.

procedure Tfmain.Button9Click(Sender: TObject);
var
  fCopyIEImgLayer: TIELayer;
begin
  fCopyIEImgLayer := TIEImageLayer.Create(nil,0,0);
  fCopyIEImgLayer.Assign(ImageEnView1.Layers[0]); //in this case background
  fCopyIEImgLayer.Locked := false;
  fCopyIEImgLayer.Selectable := True;
  fCopyIEImgLayer.VisibleBox := True;

  if assigned(fCopyIEImgLayer) then
    ImageEnView1.LayersCurrent := ImageEnView1.LayersAdd(fCopyIEImgLayer);

  ImageEnView1.MouseInteract := [miMoveLayers, miResizeLayers];
end;


Nigel
Xequte Software
www.imageen.com
nwscomps Posted - Oct 23 2018 : 03:30:29
Hi Nigel,
I had already locked = false. Even after setting Selectable = true, the grip points are not showing. This happens only for the background.

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html
xequte Posted - Oct 22 2018 : 18:18:10
Hi Francesco

By default, the background layer is locked, so ensure you set:

fCurrentIEView.CurrentLayer.Locked := False;
fCurrentIEView.CurrentLayer.Selectable:= True;


Nigel
Xequte Software
www.imageen.com