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
 Question about Layers and sizing
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

lago

40 Posts

Posted - Jul 14 2020 :  12:36:11  Show Profile  Reply
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!

xequte

38610 Posts

Posted - Jul 15 2020 :  20:54:02  Show Profile  Reply
Hi

You can lock the aspect ratio of layers with:

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


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: