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
 How do I straighten an image?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

galadToo

Australia
4 Posts

Posted - Jun 05 2021 :  07:14:13  Show Profile  Reply
I take images of my quilts hanging on a design wall.
I quite often forget to get my camera directly in front of the middle of the image, which means the quilt ends up wider at the top than the bottom.
Is there an ImageEN function that will do that type of rotation? Of the image?

An example is the attached Image1.jpg, the quilt's edges are clearly not vertical in the photo, so is there any function that will allow me to specify a rotation that will do this rotation sort of in/out of the canvas (like lightroom can).



xequte

6140 Posts

Posted - Jun 06 2021 :  04:39:32  Show Profile  Reply
Hi

Please try the perspective cropping option in the demo:

\Demos\ImageEditing\CropTool\CropTool.dpr
http://www.imageen.com/files/demos/run/ImageEditing/CropTool/CropTool.exe



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

galadToo

Australia
4 Posts

Posted - Jun 06 2021 :  07:46:48  Show Profile  Reply
I have not managed to get the demos, working, but I will certainly try that tool.
Go to Top of Page

galadToo

Australia
4 Posts

Posted - Jun 06 2021 :  07:59:58  Show Profile  Reply
Nigel, I must say it would be really nice if the demos were in C++ as well, as I am not a Delphi programmer!
Go to Top of Page

xequte

6140 Posts

Posted - Jun 07 2021 :  05:30:47  Show Profile  Reply
Hi

We do have C++ versions of some of the more complex demos, but not most of them I'm afraid. However the code for the demos like CropTool.dpr are relatively straightforward to convert. Let us know if you have any difficulty.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

galadToo

Australia
4 Posts

Posted - Jun 08 2021 :  04:45:29  Show Profile  Reply
Any chance of your just giving me code in C++ for that particular tool? It is really hard to relate the code to the gui when it is all in Delphi.
Go to Top of Page

xequte

6140 Posts

Posted - Jun 14 2021 :  23:59:07  Show Profile  Reply
Hi

The best method is to open two copies of the IDE. Open the Delphi project in one IDE and a new BCB project in the other. Copy and paste all the controls, then add each of the events (find and replace does 90% of the work).

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