Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2007

Tip: Looking for answers? Try searching our database.

rotating pictures on the fly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JimO - 13 May 2007 01:03 GMT
Is there a way in vb.net to, 1) detect if an image has been taken with a
> camera on a vertical axis, and 2) rotate the picture for display - across
> an
> intranet (asp.net), with huge files sizes (2 - 3 MB), that doesn't take
> too long?
> (LOL)
>
> Thanks,
> Jim
Peter Duniho - 13 May 2007 02:30 GMT
> Is there a way in vb.net to, 1) detect if an image has been taken with a
> camera on a vertical axis, and 2) rotate the picture for display -  
> across an intranet (asp.net), with huge files sizes (2 - 3 MB), that
> doesn't take too long?

Unless you are dealing with a camera that has a built-in sensor that  
detects orientation *and* the camera stores that information in a custom  
EXIF field *and* that data is preserved in the copy of the image you're  
looking at, you cannot do #1 without human assistance.  I'm not aware of  
any available general-purpose algorithm to detect picture orientation  
based on the contents alone.

As far as #2 goes, that's pretty simple once you've read the image in.  
You can use the Image.RotateFlip() method on a Bitmap that you've loaded  
from a file.

I hate to break it to you, but even for compressed JPEGs, 2-3 MB isn't  
that big anymore.  :)

Pete
JimO - 13 May 2007 17:24 GMT
I hate to break it to you, but even for compressed JPEGs, 2-3 MB isn't
that big anymore.  :)

LOL well... yeah... but I have to display it on a web page.  Although, given
the fact it would be accross a a gigabit wire within a small network (like 2
or 3 machines), it may not take that long. One the other hand, I would want
to resize the display to a thumbnail image (like maybe 200x300) onto kind of
a contact sheet. When paging through them, that might take a while if there
are more than a few per page. The camera would be either a Nikon D50 or a
D200.    Other software I use will rotate the image, when needed, so,  I
know the info is in there somewhere.

>> Is there a way in vb.net to, 1) detect if an image has been taken with a
>> camera on a vertical axis, and 2) rotate the picture for display -
[quoted text clipped - 16 lines]
>
> Pete

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.