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
 CropBox and Aspect Ratio
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Aug 27 2016 :  06:28:31  Show Profile  Reply
Delphi 10.1 and ImageEn 6.3

a) Is there a mechanism to assign a specific aspect ratio to a crop box and then maintain that aspect ratio while the crop box is being resized? For example, if the crop box height is changed then the width would be automatically changed an amount proportional to the assigned aspect ratio.

b) If ImageEnView1.SelectionOptions := [iesoAnimated, {iesoCutBorders, }iesoSizeable, iesoMoveable, iesoShowCenter]; There is no cross in the center of the crop box when it is being either resized or moved as discussed here, http://www.imageen.com/ieforum/topic.asp?TOPIC_ID=2014&SearchTerms=crop,box

Suggestions?


TIA

John

xequte

38615 Posts

Posted - Aug 28 2016 :  00:50:01  Show Profile  Reply
Hi John

a) This will be available in v6.3.1 ready in the next week or so (assuming you are talking about the crop interact function of TImageEnView

b) Those options do not apply to the crop interact tool, I'm afraid. Only to regular selections.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

John

USA
94 Posts

Posted - Aug 30 2016 :  22:12:10  Show Profile  Reply
Nigel

Regarding a) above in 6.3.1:

1. Is there going to be a property in the TIECropToolInteraction class to select a user defined crop tool aspect ratio similar to ImageEnView.SelectionAspectRatio := 2; For example to get a crop tool aspect ratio of 2:1 the following code would be used:

ImageEnView.CropToolInteraction.SelectionAspectRatio := 2;



2. Will the user be able to define a fixed crop tool size (in pixels) similar to ImageEnView.SelectionAspectRatio := 0; For example:

ImageEnView.CropToolInteraction.AspectRatio := 0;
ImageEnView.CropToolInteraction.SelectionAbsHeight := 200;
ImageEnView.CropToolInteraction.SelectionAbsWidth := 100;

I appreciate your efforts

John
Go to Top of Page

xequte

38615 Posts

Posted - Aug 30 2016 :  22:48:17  Show Profile  Reply
1. Yes, use as follows...

// we want a fixed aspect ratio of 4:3 (standard landscape, i.e. height is 75% of width)
ImageEnView1.CropToolInteraction.LockAspectRatio := 4 / 3;


2. Not in v6.3.1, but I will investigate...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Sep 01 2016 :  06:17:18  Show Profile  Reply
Hello Nigel,

1. Will it be possible to retrieve actual crop value from interactive mode and perform some other extra operations?

2. How the feature behave in case of ImageEnVect when we have Text Object which is falling outside crop (or rather getting cropped)?

TIA


Yogi Yang
Go to Top of Page

xequte

38615 Posts

Posted - Sep 01 2016 :  18:17:47  Show Profile  Reply
Hi Yogi

1. Yes, did you see the properties at:

http://www.imageen.com/help/TImageEnView.CropToolInteraction.html


2. Only the background image (Layer 0) is cropped, so it has no effect on any objects or other layers

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

xequte

38615 Posts

Posted - Sep 05 2016 :  23:09:54  Show Profile  Reply
Hi John

We have a demo for size locking for the Crop Tool. Email me if you want to test it.

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