"Al" <co********@cox.net> wrote in message news:92CEc.8722$mN3.6554@lakeread06...
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
SelectActiveFrame 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.GetFrameCount(Imaging.FrameDimension.Page)
img.SelectActiveFrame(System.Drawing.Imaging.Frame Dimension.Page, intCurrPage - 1)
bmp = New Bitmap(img, PictureBox1.Width, PictureBox1.Height)
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?