This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, June 16, 2010 11:18:43 AM(UTC)
Groups: Registered
Posts: 4
I am resizing a particular jpg, and noticed after resizing that it is rotated 90 degrees.
After debugging a bit, I found that on the original image CodecsImageInfo.ViewPerspective is TopLeft90.
Do I need to do anything (or should I be doing anything) to keep the ViewPerspective intact for the resulting image?
I have attached the images and code.
Thanks!
Leadtools.dll is on 15.0.1.56
#2
Posted
:
Thursday, June 17, 2010 5:14:04 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The rotation happens when you load the image using RasterImage tempImage = codecs.Load(sourceStream). LEADTOOLS loads the image correctly since it has TopLeft90 in CodecsImageInfo.ViewPerspective.
You can use IgnoreViewPerspective Property, which indicates whether or not to ignore the view perspective stored in the file.
If the image contains ViewPerspective, LEADTOOLS will save its information along with the image.
For more information, please see our .NET help file.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.