Image from GDPictureImage?

Example requests & Code samples for GdPicture Toolkits.
Post Reply
cusmith
Posts: 3
Joined: Wed May 21, 2014 7:04 pm

Image from GDPictureImage?

Post by cusmith » Wed Jun 04, 2014 12:14 am

Hello all!
I'm working on an application where I need to get a .Net Image object from a specific PDF page. GDPicture's PDF plugin makes working with PDF's super easy but I cannot figure how how to grab a PDF page and get an Image from it.

I was expecting something like this:
Dim myImage As Image = oGDPictureImaging.GetImageFromxxxx

Any help anyone can offer would be appreciated!

-Curtis

cusmith
Posts: 3
Joined: Wed May 21, 2014 7:04 pm

Re: Image from GDPictureImage?

Post by cusmith » Wed Jun 04, 2014 12:17 am

And of course...the moment i post i find the answer :

Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
Dim Bm As Bitmap = oGdPictureImaging.GetBitmapFromGdPictureImage(ImageID)
'doing some external processing on the Bitmap
Dim ResImg As Integer = oGdPictureImaging.CreateGdPictureImageFromBitmap(Bitmap)
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If

Thanks anyway :)

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

Re: Image from GDPictureImage?

Post by Loïc » Wed Jun 04, 2014 12:42 pm

Thank you for the update Curtis :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest