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 : Tuesday, January 14, 2020 3:09:12 PM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 367

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

Images stored in TIFF files can be saved in either tiles or strips. LEADTOOLS can load and save both types, but some other viewers or imaging applications might need a specific type of TIFF. To convert a tiled TIFF file to stripped TIFF, you can use the following code:

Code:
RasterImage image = _codecs.Load(tiledTifFilename);
_codecs.Options.Tiff.Save.UseTileSize = true;
_codecs.Options.Tiff.Save.TileWidth = image.Width; //if tile is same width as image, it'll save as strips instead of tiles
bool saveSingleTile = false;
if(saveSingleTile)
   _codecs.Options.Tiff.Save.TileHeight = image.Height;
else
   _codecs.Options.Tiff.Save.TileHeight = 32; //or any value less than image height
_codecs.Save(image, stripTiffilename, image.OriginalFormat, image.BitsPerPixel);
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

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.

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