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
 layers sync
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
499 Posts

Posted - May 20 2018 :  17:55:29  Show Profile  Reply
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  Show Profile  Reply
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
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - May 21 2018 :  08:35:54  Show Profile  Reply
Could you show me the syntax ?
if i write
ImageEnVect.LayersAdd(ielkImage,0,0);

I get an error.
Thanks
Go to Top of Page

xequte

39142 Posts

Posted - May 21 2018 :  16:27:22  Show Profile  Reply
Hi

What was the error message?


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

pierrotsc

USA
499 Posts

Posted - May 21 2018 :  16:28:18  Show Profile  Reply
Something that is no overloaded function. I can get you the exact error if you want to.
Go to Top of Page

xequte

39142 Posts

Posted - May 23 2018 :  06:27:17  Show Profile  Reply
Hi

What version of Delphi are you using?



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

pierrotsc

USA
499 Posts

Posted - May 23 2018 :  08:14:34  Show Profile  Reply
Berlin
Go to Top of Page

xequte

39142 Posts

Posted - May 23 2018 :  17:14:31  Show Profile  Reply
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
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - May 24 2018 :  11:48:33  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: