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 : Saturday, June 24, 2006 4:01:37 AM(UTC)
neerajkaushik_123

Groups: Registered
Posts: 10


Hi,

I want to split multipage tiff into single page tif. please provide any solution.

Thanks in advance

Neeraj Kaushik

 

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 : Monday, June 26, 2006 10:47:15 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


To do this all you need to do is load the image and all of its pages with the Load method.  After that you can loop through however many pages, saving each page as a separate TIF file with the Save method.  Below is a code sample for VB.NET.  For more detailed information on how to use the Load and Save methods, consult the help file.


        img = codecs.Load(Application.StartupPath + "\..\combined.TIF", 0, CodecsLoadByteOrder.BgrOrGray, 1, 4)

        codecs.Save(img, Application.StartupPath + "\..\1.tif", RasterImageFormat.Tif, 24, 1, 1, 1, CodecsSavePageMode.Overwrite)
        codecs.Save(img, Application.StartupPath + "\..\2.tif", RasterImageFormat.Tif, 24, 2, 2, 1, CodecsSavePageMode.Overwrite)
        codecs.Save(img, Application.StartupPath + "\..\3.tif", RasterImageFormat.Tif, 24, 3, 3, 1, CodecsSavePageMode.Overwrite)
        codecs.Save(img, Application.StartupPath + "\..\4.tif", RasterImageFormat.Tif, 24, 4, 4, 1, CodecsSavePageMode.Overwrite)
 
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.062 seconds.