Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi.
My project have a Picture box control for loading pictures but it's worked fine
my problem is...
some vertical Jpg picture was shown Horizontally in windows explorer and also my picutre box control at that same that file was opened with vertically in editors like photoshop. but i need not picture rotate codes i want to Vertical picture was shown as vertically into my picture box control is't possible,
please help me.
Thanks.
Posted

Hi Tamilpuyal,

the picture box will always display the image the way it was stored. What you're talking about with photoshop displaying it the way you want, has to do with some meta information stored in the image (like some cameras do when the picture is taken with the camera in a vertical position). Photoshop detects that meta information and does the rotating part for you. If you want to display your images "correctly"
you will have to do the detecting plus the rotating yourself.

Cheers

Manfred
 
Share this answer
 
v2
Comments
Dalek Dave 20-Nov-10 14:57pm    
Good Answer.
Hello Manfred :) Thanks for your valuable reply ............
I got the solutions :) ............
My problem solved :) .......
 
Share this answer
 
Comments
Manfred Rudolf Bihy 20-Nov-10 13:11pm    
Will you let us know how you worked it out?
tamilpuyal_28 7-Feb-11 8:47am    
hello manfred sorry for late reply may i upload that codes......
tamilpuyal_28 7-Feb-11 8:51am    
i get Orientation values from [JPG] EXIF data then update my picture box...
Nanigarikapati 16-Aug-17 11:31am    
Would you please share your code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900