SetNativeImage

General discussions about GdPicture.NET.
Post Reply
dcoffey
Posts: 12
Joined: Mon Feb 11, 2008 1:37 am

SetNativeImage

Post by dcoffey » Thu Jan 23, 2014 11:06 pm

I am upgrading my application from gdpicture pro 5 active x to the new GDPicture Document Imaging SDK v10

I was resizing images with
nImageID = AxImg.CreateImageFromFile(path & filename)
nThumbnailID = AxImg.GetResizedImage(nImageID, 352, 240)
If nThumbnailID <> 0 Then
AxImg.SetNativeImage(nThumbnailID)
AxImg.SaveAsJPEG(newFile, res)
End If

My problem is that it seems setnativeimage has been dropped. What is best method to resize and save an image now?

Im using
nImageID = i.CreateGdPictureImageFromFile(path & filename)
nThumbnailID = i.GetResizedGdPictureImage(nImageID, 352, 240, Drawing2D.InterpolationMode.Bicubic)

But am stuck at the setnative image.

Thanks!

dcoffey
Posts: 12
Joined: Mon Feb 11, 2008 1:37 am

Re: SetNativeImage

Post by dcoffey » Thu Jan 23, 2014 11:35 pm

I found :
nThumbnailID = oGdPictureImaging.GetResizedGdPictureImage(ImageID, 352, 240, Drawing2D.InterpolationMode.Bicubic)
oGdPictureImaging.SaveAsJPEG(nThumbnailID, newFile, res)
oGdPictureImaging.ReleaseGdPictureImage(nThumbnailID)

Seems to work, is this the best approach?

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: SetNativeImage

Post by SamiKharma » Thu Apr 17, 2014 12:28 pm

Hi,

Yes SetNativeImage has been dropped.
In any case, creating thumbnails in GdPicture.NET is a lot easier, all you have to do is call the GdPictureImaging.CreateThumbnailHQ

I hope this helps.

Best regards,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest