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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem by PosX,PosY after ImageEnView1.LayersMerge( 0, 1 );
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Aug 09 2022 :  07:02:03  Show Profile  Reply
Hello,
when using layers there is the following problem see example pictures.
1. Original Imageenview1.center := true


2. With Layer1 and softshadow.enabled := true;


3. Mergelayer(0,1);
Problem, the Picture not more in center, posx and psy < 0


4. Set posx,posy = 0, it's Ok now


5. Original + Layer1 imageenview1.center := false;


6. Softshadow.enabled = true, Mergelayer(0,1)
Problem, left and top Site not visible


7. Posx,posy = 0, It's Ok


Maybe this could be corrected. Then you don't have to correct it every time.


Klaus
DigiFoto
www.klausdoege.de

xequte

38176 Posts

Posted - Aug 10 2022 :  00:45:18  Show Profile  Reply
Hi Klaus

In the first state, the view is centered over layer 0 (which appears to be a blank 1x1 image), and layer 1 is ignored.
After you merge it is now centered on your layer 1 + layer 2 combined, so it is expected to move.

It is easier to see if you make Layer 0 visible, e.g.
ImageEnView1.Layers[0].Bitmap.Allocate(10, 10, clRed);
ImageEnView1.Update;

This is why ImageEnView1.Center is not recommended for layer editing.

Also see loDynamicCanvas in LayerOptions:

https://www.imageen.com/help/TImageEnView.LayerOptions.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Aug 10 2022 :  06:10:14  Show Profile  Reply
Hi Nigel,
loDynamicCanvas is not practical for me.
When moving, unpredictable views arise.
If center := false, it doesn't work.
I set after mergelayer, posx and posy = 0.
The result is better.

Klaus
DigiFoto
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: