This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, April 13, 2006 9:19:39 AM(UTC)
Groups: Registered
Posts: 7
I am having an issue when saving the first group 4 tiff that I open in
the viewer. The TIFF tag StripByteCounts (#279) is being set to 1 when
I save the image. This only happens on the first image. If I open a
second image and save the file, it is saved correctly. Another
interesting piece of info with this problem is that is works everytime
if I am running my application in the IDE. I believe in my testing, if
I change the format to be just 'ccit' the save worked correctly.
I am attaching a simple example program so you can see if I am doing
something wrong in code. Included in the zip is a TIFF file that is not
working correctly.
Thanks in advance for your help.
Steve
#2
Posted
:
Sunday, April 16, 2006 11:38:25 PM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Steve,
You are right. The code causes different values to be written to the
StripByteCounts tag if it is executed inside the IDE and outside it.
However, both values are incorrect. To get it to write the correct
value, the stream must be seekable. When I changed the "new FileStream"
line to use System.IO.FileAccess.ReadWrite instead of FileAccess.Write,
the problem seems to be solved.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, April 17, 2006 6:35:22 AM(UTC)
Groups: Registered
Posts: 7
I will make those changes.
Thanks for your help.
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.