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
 CropBox and Aspect Ratio

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
John Posted - Aug 27 2016 : 06:28:31
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
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 05 2016 : 23:09:54
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
xequte Posted - Sep 01 2016 : 18:17:47
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
yogiyang Posted - Sep 01 2016 : 06:17:18
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
xequte Posted - Aug 30 2016 : 22:48:17
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
John Posted - Aug 30 2016 : 22:12:10
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
xequte Posted - Aug 28 2016 : 00:50:01
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