Author |
Topic |
|
klausdoege
Germany
389 Posts |
Posted - Aug 09 2022 : 07:02:03
|
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
38608 Posts |
Posted - Aug 10 2022 : 00:45:18
|
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
|
|
|
klausdoege
Germany
389 Posts |
Posted - Aug 10 2022 : 06:10:14
|
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 |
|
|
|
Topic |
|
|
|