Multiple images in memory

Discussions about image processing and document imaging.
Post Reply
steves
Posts: 59
Joined: Fri Oct 17, 2008 4:38 pm

Multiple images in memory

Post by steves » Fri Dec 11, 2009 3:20 pm

Hi is it possible to extract multiple pages from a pdf into a multiple page image in memory without saving it to a file first.

For example

Code: Select all


 For i As Integer = 1 To Me.Viewer.PageCount        ' 4 pages
            nImageid = Me.Viewer.PdfRenderPageToGdPictureImage(200, i)
            image.ConvertTo1Bpp(nImageid)

-->> need some thing here like image.copy(nimageid,nImageid2,i) ' (Source image , dest image,page number)
           
 Next

Me.Viewer.DisplayFromGdPictureImage(nImageid2) ' displays all 4 pages
Thanks
steve

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

Re: Multiple images in memory

Post by Loïc » Fri Dec 11, 2009 3:27 pm

Hi Steve,

Just create a multipage tiff image using the GdPictureImaging class. You have several samples into the documentation & into the forum.

Let me know if you need more assistance.

Kind regards,

Loïc

steves
Posts: 59
Joined: Fri Oct 17, 2008 4:38 pm

Re: Multiple images in memory

Post by steves » Fri Dec 11, 2009 3:47 pm

Thanks Loic thats just what i was after.
I was assuming that i would need to save the multipage tiff beofre being able to view it and didnt realise i could do it in memory.

Many thanks for the swift response.

Cheers
steve

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest