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
 How to flip multiple layers Horizontally
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Jan 16 2019 :  06:49:43  Show Profile  Reply
Hello,

I have a requirement where in I have to allow user to duplicate selected layers and then Flip them Horizontally.

Here is a sample image:


The user will select a few layers as needed and duplicate all selected layers and then Flip them and move them in the other part of image.

Here is a sample:


TIA


Yogi Yang

zerob

111 Posts

Posted - Jan 16 2019 :  13:18:36  Show Profile  Reply
I think you have to duplicate them, flip them and move them into a new position one by one. (Each layer in a loop)
Go to Top of Page

yogiyang

India
725 Posts

Posted - Jan 16 2019 :  21:53:26  Show Profile  Reply
Yes, I have already coded the part that will duplicate selected layers.

The problem part is Flipping them Horizontally and/or vertically (as I cannot find any property/method attached to Layer that will allow one to Flip the layer) and then finally calculating their position.

TIA


Yogi Yang
Go to Top of Page

xequte

38217 Posts

Posted - Jan 16 2019 :  21:59:55  Show Profile  Reply
Hi Yogi

Why not just flip the layer image?

TIEImageLayer( ImageEnView1.Layers[ i ]).Bitmap.Flip( fdHorizontal );
ImageEnView1.Update();


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

yogiyang

India
725 Posts

Posted - Jan 16 2019 :  23:39:46  Show Profile  Reply
Hello Nigel,

Thanks for the timely tip. I was reading the help file for finding a way to achieve this and I just read about it!

And this method is very fast also.

Regards,


Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: