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!
SetNativeImage
Re: SetNativeImage
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?
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?
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: SetNativeImage
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
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
Who is online
Users browsing this forum: No registered users and 2 guests