Page 1 of 1

Image from GDPictureImage?

Posted: Wed Jun 04, 2014 12:14 am
by cusmith
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

Re: Image from GDPictureImage?

Posted: Wed Jun 04, 2014 12:17 am
by cusmith
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 :)

Re: Image from GDPictureImage?

Posted: Wed Jun 04, 2014 12:42 pm
by Loïc
Thank you for the update Curtis :)