Author |
Topic  |
|
pierrotsc
  
USA
499 Posts |
Posted - May 20 2018 : 17:55:29
|
I just noticed that when my layer 0 does not fill out the screen and I add another image layer on top of it, they are not aligned. the new layer is a little bit to the right and down. when layer 0 fit the screen, I think it works. I think I used to have a sync all layers function but I do not think that is available anymore. advice ? Thanks |
|
xequte
    
39142 Posts |
Posted - May 21 2018 : 01:53:58
|
Hi
That is not due to LayersSync, but that ImageEn now automatically shifts new layers down and to the right (to make them easier to edit).
You should just set PosX and PosY to zero in your LayersAdd method. All the overloads support it:
https://www.imageen.com/help/TImageEnView.LayersAdd.html
Nigel Xequte Software www.imageen.com |
 |
|
pierrotsc
  
USA
499 Posts |
Posted - May 21 2018 : 08:35:54
|
Could you show me the syntax ? if i write ImageEnVect.LayersAdd(ielkImage,0,0);
I get an error. Thanks |
 |
|
xequte
    
39142 Posts |
Posted - May 21 2018 : 16:27:22
|
Hi
What was the error message?
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
499 Posts |
Posted - May 21 2018 : 16:28:18
|
Something that is no overloaded function. I can get you the exact error if you want to. |
 |
|
xequte
    
39142 Posts |
Posted - May 23 2018 : 06:27:17
|
Hi
What version of Delphi are you using?
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
499 Posts |
Posted - May 23 2018 : 08:14:34
|
Berlin |
 |
|
xequte
    
39142 Posts |
Posted - May 23 2018 : 17:14:31
|
Hi
This works fine when I test it here on Berlin:
ImageEnVect1.LayersAdd(ielkImage,0,0);
How about: ImageEnVect1.LayersAdd( 100, 100, ie24RGB, 0, 0 );
or simply: ImageEnVect1.LayersAdd(); ImageEnVect1.CurrentLayer.PosX := 0; ImageEnVect1.CurrentLayer.PosY := 0;
Nigel Xequte Software www.imageen.com
|
 |
|
pierrotsc
  
USA
499 Posts |
Posted - May 24 2018 : 11:48:33
|
This is the exact message [dcc32 Error] Umain.pas(3818): E2250 There is no overloaded version of 'LayersAdd' that can be called with these arguments
ImageEnVect.LayersAdd( imageenvect.IEBitmap.Width, imageenvect.IEBitmap.Height, ie24RGB, 0, 0 ); works.
But i had found another way around too: ImageEnVect.LayersAdd(ielkImage); ImageEnVect.CurrentLayer.PosX := IELayer_Pos_HCenter; ImageEnVect.CurrentLayer.PosY := IELayer_Pos_VCenter;
Best |
 |
|
|
Topic  |
|