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 2:09:20 AM(UTC)
sosoprince

Groups: Registered
Posts: 23


I have tried to disable the TileWidth and TileHeight setting when saving multipage jpeg compression tif. But why the value is still there in the tif tag ??

 

 

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 : Wednesday, November 15, 2006 6:20:08 PM(UTC)
sosoprince

Groups: Registered
Posts: 23


How to convert the tiff image (jpeg compression) to single stripe ??

 
#3 Posted : Wednesday, November 15, 2006 11:37:12 PM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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


If you are using our .NET classes, here's how to do it:




  codecs.Options.Jpeg.Save.SaveOldJtif = False
  codecs.Options.Tiff.Save.UseTileSize = True
  codecs.Options.Tiff.Save.TileHeight = tempImage.Height
  codecs.Options.Tiff.Save.TileWidth = tempImage.Width * 2

  'saving the image

  codecs.Save(tempImage, "d:\test1.tif", RasterImageFormat.TifJpeg422, 24, 1, 3, 1, CodecsSavePageMode.Overwrite)




For related information using our Main OCX control, see the following forum post:
http://support.leadtools.com/SupportPortal/cs/forums/9065/ShowPost.aspx


 

 
#4 Posted : Thursday, November 16, 2006 9:48:17 PM(UTC)
sosoprince

Groups: Registered
Posts: 23


How about if i want to set it to codecs.Options.Jpeg.Save.SaveOldJtif = True

Is the image still corrected ?

 
#5 Posted : Sunday, November 19, 2006 6:15:21 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

When setting the codecs.Options.Jpeg.Save.SaveOldJtif
= True the image will be saved in one single strip. If you set it to False, you can save it in multi strips depending on the TileHeight you specify.

In addtion to saving images into single strips with SaveOldJtif, you can also save images into tiles with it.

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