Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, September 4, 2007 1:07:57 AM(UTC)

laggy  
laggy

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? :)
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, September 4, 2007 9:33:27 AM(UTC)

jigar  
Guest

Groups: Guests
Posts: 3,034

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 RasterViewPerspectiveRasterViewPerspective could be any of the following:

RasterViewPerspective.TopLeft
RasterViewPerspective.TopLeft90
RasterViewPerspective.TopLeft180
RasterViewPerspective.TopLeft270
RasterViewPerspective.BottomLeft
RasterViewPerspective.BottomLeft90
RasterViewPerspective.BottomLeft180
RasterViewPerspective.BottomLeft270


So 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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.271 seconds.