LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Convert tiled TIFF image to strips TIFF
#1
Posted
:
Tuesday, January 14, 2020 3:09:12 PM(UTC)
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.
LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Convert tiled TIFF image to strips TIFF
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.