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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to flip multiple layers Horizontally

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Jan 16 2019 : 06:49:43
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
4   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Jan 16 2019 : 23:39:46
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
xequte Posted - Jan 16 2019 : 21:59:55
Hi Yogi

Why not just flip the layer image?

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


Nigel
Xequte Software
www.imageen.com
yogiyang Posted - Jan 16 2019 : 21:53:26
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
zerob Posted - Jan 16 2019 : 13:18:36
I think you have to duplicate them, flip them and move them into a new position one by one. (Each layer in a loop)