This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, February 28, 2008 11:35:34 AM(UTC)
Groups: Registered
Posts: 7
Hello all
I have a little problem trying to read tiff tags , I need to read tag 262 which is for photometric interptretation but have not been able to do it
Im using LeadTools 11.5 and Visual Basic 6.0
Could you please intruct me on the best way to do this , I`ve been trying to do this for a while now and have not been able to accomplish anything
#2
Posted
:
Thursday, February 28, 2008 12:02:32 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
This should read the tag for you.
LEAD1.ReadTag "C:\file.tif", 1, 262If it returns SUCCESS then you can check what
LEAD1.Tag says.
#3
Posted
:
Thursday, February 28, 2008 12:34:17 PM(UTC)
Groups: Registered
Posts: 7
Thank you so much !!!
i used the method you pointed and it returns 0, do this mean its was successful ? and if it is how do I read from Lead1.tag ???
#4
Posted
:
Friday, February 29, 2008 10:39:20 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Yes SUCCESS = 0. LEAD1.Tag is a string variable, so you just read it like any other string variable. Do you have the help file? You can send an email to
support@leadtools.com and request for the v11 help file.
#5
Posted
:
Friday, February 29, 2008 12:19:51 PM(UTC)
Groups: Registered
Posts: 7
Thanks for your help Jigar
Unfortunately I havent been able to accomplish my task just yet. This is the segement of the code im using. I read the tag successfully but i can actually read what the photometric interpretation is. All I get is an empty string
If .LEAD1.ReadTag(FImage, 1, 262) = 0 Then
MsgBox "The Photometric Interpretation is : " & .LEAD1.tag
End If
Im not sure what im doing wrong but I`ll definitely ask for the v11 help and read it to see if i can finally fix my problem
#6
Posted
:
Monday, March 3, 2008 7:16:59 AM(UTC)
Groups: Registered
Posts: 7
Hello again
I`ve been browsing through the help files and the examples that ship with LeadTools v11.5 but I have not found an example that uses the readtag, gettagdata or gettagcount methods . As i said in my previous post if I try to read LEAD1.tag all I get is an empty string.
So how exactly to I read a tag ?
Thanks for your help
#7
Posted
:
Tuesday, March 4, 2008 1:41:26 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Here's
an example I tried with v11.5 to read a tag:
LEAD1.ReadTag
"ocr1.tif", 1, &H131 'read the Software tag
Dim
tagData
tagData
= LEAD1.GetTagData(0) 'the newly read tag
MsgBox
tagData
#8
Posted
:
Wednesday, March 5, 2008 6:29:50 AM(UTC)
Groups: Registered
Posts: 7
Thanks
It worked perfectly
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.