This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, October 7, 2005 7:17:25 AM(UTC)
Groups: Registered
Posts: 32
This file seems to have the w and h reversed. All other app (Paint, Paint Shop Pro 8, Corel Photo Paint) open it correctly. We are currently using Lead 14 (no patchs that I know of). Can anyone confirm that the patchs would help. We are about to release our software and an update at this time might postpone release.
Lead 14 Demo32.exe displays the problem.
Thanks in advance
Tony Teveris
#2
Posted
:
Tuesday, October 11, 2005 6:05:36 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
The image is loaded correctly using LEADTOOLS 14.
The file contains the Orientation TIFF tag with a value of 8, which means the image should be rotated.
Programs that load the image without rotating do not use this tag correctly.
If you need your program to behave like these other applications, you
can detect the tag value, then rotate the image to simulate their behavior.
You can use the L_ReadFileTag function. The tag value is 0x112.
Edited by user Tuesday, December 6, 2016 1:43:05 PM(UTC)
| Reason: Not specified
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
#3
Posted
:
Tuesday, October 11, 2005 9:24:03 AM(UTC)
Groups: Registered
Posts: 32
Amin, should the LeadTools 14 API do this automaticlly or does the program have to inquire about the tag and then perform the rotation. My version of DEMO32.exe (version 14) does NOT rotate the image when it is opened.
Thanks in advance
Tony
#4
Posted
:
Friday, October 14, 2005 5:17:42 AM(UTC)
Groups: Registered, Tech Support
Posts: 46
Tony,
LEADTOOLS accounts for the orientation tag automatically and displays the image the way you see it in our demo.
If you want to display it like the other applications, which technically speaking is an incorrect behavior because the tag was put there for a reason, but very common (probably more common than the correct behavior!), your code will have to check for the tag and perform a deliberate rotation.
Our engineers already have a feature request to add the common (not-quite-right) behavior as an option in a future build of the toolkit.
Amin Dodin
LEADTOOLS Technical Support
Gabe
Developer Support
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
#5
Posted
:
Monday, November 14, 2005 1:44:33 PM(UTC)
Groups: Registered
Posts: 2
I have same problem with it. I don't understand how to solve it, would you send some more information about it. or example ASAP please...
#6
Posted
:
Wednesday, November 16, 2005 12:42:58 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
If you want LEADTOOLS to behave like other programs that don't rotate
the image, a general solution is to detect the tag that specifies the
view perspective in the file, and depending on its value decide whether
to rotate the file or not. One way to do that is to examine the File
Info of the file. The exact details depend on the LEADTOOLS programming
environment. In the Main OCX, for example, this can be done by calling
GetFileInfo then examining the InfoViewPerspective property.
Edited by user Tuesday, December 6, 2016 2:05:23 PM(UTC)
| Reason: Not specified
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
#7
Posted
:
Wednesday, November 16, 2005 3:29:02 PM(UTC)
Groups: Registered
Posts: 2
#8
Posted
:
Monday, January 30, 2006 4:35:19 AM(UTC)
Groups: Registered
Posts: 2
Is there a solution with LeadTools v13 ?
I use GetInfo and found that the ViewPerspective is LEFT_BOTTOM, so what is the next part of solution ? I try RotateViewPerspective (90), or changing the call to Load with a pLoadFileOption parameter, and its Flags set to ELO_IGNOREVIEWTRANSFORMS , but no result...
Maybe I need to precise the loading method before, but I don't ofund any tips in the doc nor the forum, please explain to me...
Thierry
PS : please excuse my bad english...
#9
Posted
:
Wednesday, February 1, 2006 6:33:27 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Thierry,
The ELO_IGNOREVIEWTRANSFORMS flag does not affect rotation caused by view perspective.
LEADTOOLS 14.5 contains a new flag named ELO_IGNOREVIEWPERSPECTIVE the
does this, but it didn't exist in older versions of LEADTOOLS.
The L_RotateBitmapViewPerspective function is only available in the
LEADTOOLS Document/Medical Toolkits. You could use the standard
L_RotateBitmap function instead.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
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.