This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, September 4, 2007 1:07:57 AM(UTC)
Groups: Registered
Posts: 1
Hi,
I need help to know rotation angle after rasterCodecs load image with autorotation option is true:
here's my code:
RasterCodecs rasterCodecs = new RasterCodecs();
rasterCodecs.Options.Load.Rotated = true;
IRasterImage image = rasterCodecs.Load(path);
Who can help me? :)
#2
Posted
:
Tuesday, September 4, 2007 9:33:27 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Hello,
This is very simple. You would use
image.ViewPerspective to get the rotation angle. The
ViewPerspective is of type
RasterViewPerspective.
RasterViewPerspective could be any of the following:
RasterViewPerspective.TopLeft
RasterViewPerspective.TopLeft90
RasterViewPerspective.TopLeft180
RasterViewPerspective.TopLeft270
RasterViewPerspective.BottomLeft
RasterViewPerspective.BottomLeft90
RasterViewPerspective.BottomLeft180
RasterViewPerspective.BottomLeft270So you can use it like this:
if (image.ViewPerspective == RasterViewPerspective.TopLeft180)
...
For more information please refer to the "ViewPerspective Property" article of the LEADTOOLS .NET Documentation.
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.