LEADTOOLS Support
Imaging
Imaging SDK Questions
How To: disable auto rotate function when displaying JPEG image
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, October 25, 2009 8:13:00 PM(UTC)
Groups: Registered
Posts: 2
LeadTools version : 16.5
WinXP(SP3), Visual Studio 2005 Environment (C/C++)
I just want to know how to turn off auto-rotate option.
I found LBitmapBase::Load() automatically rotate image using orientation information from EXIF.
But I don't want this functionality.
Below is my code. thanks.
LAnimationWindow m_LAniWnd;
m_LAniWnd.SetFileName("C:\\a.jpg");
m_LAniWnd.Load();
godanse@nate.com
#2
Posted
:
Monday, October 26, 2009 4:33:00 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You can do that by using the flag ELO_IGNOREVIEWPERSPECTIVE in the structure LOADFILEOPTION which causes files to be loaded without taking orientation (view perspective) into consideration.
Then you will need to use this structure in your Load() Method.
You can read more about it in the following help topics in our C/C++ help files:
- LOADFILEOPTION.
- LBitmapBase::Load(pszFileName, nBitsPerPixel=0, nOrder=ORDER_BGRORGRAY, pLoadFileOption=NULL, pFileInfo=NULL)
- GetDefaultLoadFileOption()
LEADTOOLS Support
Imaging
Imaging SDK Questions
How To: disable auto rotate function when displaying JPEG image
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.