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 : Friday, October 7, 2005 7:17:25 AM(UTC)
tteveris

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

File Attachment(s):
Great Oak Plaza photo 2 edited1.jpg (1,076kb) downloaded 59 time(s).
 

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, October 11, 2005 6:05:36 AM(UTC)

Amin  
Amin

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
 
#3 Posted : Tuesday, October 11, 2005 9:24:03 AM(UTC)
tteveris

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)

Gabe  
Gabe

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
 
#5 Posted : Monday, November 14, 2005 1:44:33 PM(UTC)
youngmin

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)

Amin  
Amin

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
 
#7 Posted : Wednesday, November 16, 2005 3:29:02 PM(UTC)
youngmin

Groups: Registered
Posts: 2


Thank you verymuch!!!
 
#8 Posted : Monday, January 30, 2006 4:35:19 AM(UTC)

thierry  
thierry

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)

Amin  
Amin

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
 
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-2024, Yet Another Forum.NET
This page was generated in 0.175 seconds.