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 : Wednesday, November 15, 2006 11:56:46 PM(UTC)
sosoprince

Groups: Registered
Posts: 23


I want to know how to set the fill order(266) field in the tiff (jpeg compression) by using Leadtools 14.5 and C#.Net 2003?

I mean to say how to set LeastSignificantBitFirst value when saving tif file

 

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 : Thursday, November 16, 2006 2:08:53 PM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

This tag is controlled automatically by the toolkit when you save TIFF images with LEADTOOLS, and you have the option to use both types of Fill Order with certain types of CCITT-compressed and raw files.
Of course you can change it manually using the RasterCodecs.WriteTag Method, but please note that the TIFF 6 specification states that "FillOrder = 2 should be used only when BitsPerSample = 1". Since JPEG compression does not work with 1 bit/sample images, you should not modify this tag with JPEG-compressed TIFF images.

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Thursday, November 16, 2006 6:17:35 PM(UTC)
sosoprince

Groups: Registered
Posts: 23


1) So how to write a count 1, value 1 to the tag with tag id 266??

2) How to do the fill order setting in the Leadtools toolkits

 
#4 Posted : Sunday, November 19, 2006 8:26:40 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

If you want to set the tag value manually to 1, here's the code to do it:
Leadtools.Codecs.RasterCodecs _codecs = new Leadtools.Codecs.RasterCodecs();
Leadtools.RasterTagMetadata tag = new RasterTagMetadata();
tag.DataType = Leadtools.RasterTagMetadataDataType.UInt16;
tag.Id = 266;
UInt16[] shartValue = new UInt16[1];
shartValue[0] = 1;
tag.FromUInt16(shartValue);
_codecs.WriteTag(@"c:\image.tif", 1, tag);

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#5 Posted : Monday, November 27, 2006 3:31:26 AM(UTC)
sosoprince

Groups: Registered
Posts: 23


When i write the fill order tag into the file, the file in a huge bigger size?
 
#6 Posted : Monday, November 27, 2006 4:12:15 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

I think you already posted this question somewhere else. I will search for it and make sure one of our support agents attempts to answer it.

Please do not make double posts in the future because we always try to
address all forum posts. If a post is missed or not answered in a
timely fashion, please re-post in the original thread and we will receive a notification message by the system.

Thank you for your understanding.

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.120 seconds.