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
 Question about Layers and sizing

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
lago Posted - Jul 14 2020 : 12:36:11
Hello !, I am making a small program to lay out photo albums.
I have a template system that works fine, but I don't know how to reposition the image within a layer. I don't know if it is possible.

I explain:
I use LayersAdd to load the image into a layer and position it,
if i use keep aspect ratio the width and height of the layer are adjusted but they are already different from the width and height of the template.

Is there a way that the image contained in a layer is not affected by resizing the width and height of the layer?

I use:

// Output the visible bitmap in ImageEnView1 to ImageEnView2
ImageEnView1.IEBitmap.Width: = IERectangle (ImageEnViewRe.VisibleBitmapRect) .Width;
ImageEnView1.IEBitmap.Height: = IERectangle (ImageEnViewRe.VisibleBitmapRect) .Height;
ImageEnViewRe.IEBitmap.DrawToTIEBitmap (ImageEnView1.IEBitmap, 0, 0, IERectangle (ImageEnViewRe.VisibleBitmapRect));
ImageEnView1.Update;


To reframe the image from another ImageEnView and it works fine, but the image displayed on the layer is always affected by the width and height of the layer.

I don't know if I explain myself well, it's complicated.







Thanks for any help!
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 15 2020 : 20:54:02
Hi

You can lock the aspect ratio of layers with:

https://www.imageen.com/help/TIELayer.AspectRatioLocked.html


Nigel
Xequte Software
www.imageen.com