"Al" <co********@cox .net> wrote in message news:92CEc.8722 $mN3.6554@laker ead06...
Is it possible, using only VB.NET code, to extract a single page from a
multipage tiff file?
Yes, it is possible. For example, you can load a multipage tiff image into an image object and select page using the
SelectActiveFra me method in the image object.
Dim img As Image
Dim bmp As Image
img = Image.FromFile( OpenFileDialog1 .FileName)
intCurrPage = 2 'Select page 2
intNumPages = img.GetFrameCou nt(Imaging.Fram eDimension.Page )
img.SelectActiv eFrame(System.D rawing.Imaging. FrameDimension. Page, intCurrPage - 1)
bmp = New Bitmap(img, PictureBox1.Wid th, PictureBox1.Hei ght)
bmp now holds the selected page.
--
Al Reid
How will I know when I get there...
If I don't know where I'm going?