Using TiffCreateMultiPageFromGdPictureImage

Discussions about image processing and document imaging.
Post Reply
Eric
Posts: 12
Joined: Wed Oct 03, 2012 3:56 am

Using TiffCreateMultiPageFromGdPictureImage

Post by Eric » Fri Dec 07, 2012 4:29 am

the simple code is below :

Dim ImageID1 As Integer = 0
Dim ImageID2 As Integer = 0

oGdPictureImaging.TiffOpenMultiPageForWrite(True)
ImageID1 = oGdPictureImaging.TiffCreateMultiPageFromFile("input.tif") 'the page count of ImageID1 is > 1
ImageID2 = oGdPictureImaging.TiffCreateMultiPageFromGdPictureImage(ImageID1) 'but the page count of ImageID2 is only 1 here when i use this method
oGdPictureImaging.ReleaseGdPictureImage(ImageID1)

who can tell me what's wrong? thanks~

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Using TiffCreateMultiPageFromGdPictureImage

Post by Loïc » Fri Dec 07, 2012 5:01 pm

Hello,

The purpose of the TiffCreateMultiPageFromGdPictureImage() is to start a new editable multipage tiff from a single page.
If you need to clone a multi bitmap tiff into the memory, just brows through all pages of the input document in order to add individual pages to the destination image.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests