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
 Layer rotation image quality
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

markus42

Germany
16 Posts

Posted - Jan 08 2013 :  11:13:26  Show Profile  Reply
Hello,

i am a new user of imageen, sorry for my questions.
I'm rotate some face images with imageEn (layers).
How can i make the quality of the rotation result better.

See attached file. On the left side is the imageEn Rotation (Layers Demo). The edge of face looks not good enough for me.
Is there any anti-aliasing setting like in Proc.Rotate ?
The right example is rotated wiht corel photopaint.

Kind Regards

Markus





w2m

USA
1990 Posts

Posted - Jan 08 2013 :  12:12:54  Show Profile  Reply
You could try
ImageEnView1.UseResampleFilter := True;
ImageEnView1.LayersRotationAntialias := True;
ImageEnView1.CurrentLayer.ResampleFilter := rfBicubic;
// or
ImageEnView1.CurrentLayer.ResampleFilter := TResampleFilter(ResampleFilter1.ItemIndex);

If you need the best quality try: rfHermite, rfBell, rfBSpline, rfLanczos3, rfMitchell, rfNearest, rfBilinear, rfBicubic
If you need speed try: rfTriangle, rfLinear, rfFastLinear... Add these items to a TComboBox named ResampleFilter1.

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

markus42

Germany
16 Posts

Posted - Jan 09 2013 :  11:56:55  Show Profile  Reply
Hello Bill,

thanks for your reply.

I'm trying your tip, but with no change of the result.
So i consult the helpfile again, an I'm playing around with
LayersRotationAntialias and LayersRotationFilter but i never saw any effect.

Many thanks for spending your time.

Markus
Go to Top of Page

xequte

39087 Posts

Posted - Jan 09 2013 :  12:20:52  Show Profile  Reply
Hi Markus

Also, call TImageEnView.LayersFixRotations when the rotations are completed.



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

markus42

Germany
16 Posts

Posted - Jan 10 2013 :  11:59:12  Show Profile  Reply
Hello,

this was the solution.

Thanks

Markus
Go to Top of Page

andrefm

Australia
2 Posts

Posted - Aug 21 2013 :  03:51:18  Show Profile  Reply
Is there a way to rotate the image and have the same quality as I would have after calling ImageEnView1.LayersFixRotations()?
Even using ImageEnView1.LayersRotationAntialias := true; and different LayersRotationFilter I don't get the same result. Not sure if this is a limitation of ImageEn.

For example I managed to rotate and resize layers and have excellent results using graphics32 (http://andrefm.com/graphics32/index.html ; if it appears not to be that good, it's because the video was resized), but the issue with graphics32 is that it requires lot of work and coding. I need implementing many other features that are available in ImageEn and would have to spend long time to do with graphics32.

I saw one suggestion (http://www.imageen.com/ieforum/topic.asp?TOPIC_ID=1096&SearchTerms=rotate) where I would call LayersFixRotation at ImageEnView1LayerNotify, but after rotating many times the image quality is bad. Another problem is the layer boundaries/dimension (not sure how to describe better) would change.
Go to Top of Page

xequte

39087 Posts

Posted - Aug 22 2013 :  17:26:54  Show Profile  Reply
Hi

We do have improvements in this area planned for a coming update.



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

andrefm

Australia
2 Posts

Posted - Oct 07 2013 :  17:12:35  Show Profile  Reply
Hi,
Could you please let me know if someone of the compiles Demos were compiled and updated with the latest ImageEn? I would like to test the rotation without having to install a TRIAL version as I have an older version installed.
I tested Layers.exe and RotateLayers.exe but the result is not much different from before.
Thank you
Go to Top of Page

xequte

39087 Posts

Posted - Oct 08 2013 :  02:20:31  Show Profile  Reply
Hi

Yes, all the demos are recompiled with each release. Please download the "Layers" demo.

At the bottom right you will see the "Rotation Preview," which illustrates the new property. It is recommended to use the "Delayed" option as otherwise rotation of large images can be slow

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: