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?
Search found 12 matches
- Thu Jan 23, 2014 11:35 pm
- Forum: General discussions
- Topic: SetNativeImage
- Replies: 2
- Views: 4004
- Thu Jan 23, 2014 11:06 pm
- Forum: General discussions
- Topic: SetNativeImage
- Replies: 2
- Views: 4004
SetNativeImage
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(nThum...
- Wed Jul 31, 2013 10:54 pm
- Forum: TWAIN & WIA Acquisition
- Topic: Problem finding issue
- Replies: 1
- Views: 3134
Re: Problem finding issue
please disregard. I was able to fix the issue.
I assumed since this was a brand new in the box scanner the drivers would be relatively new. WRONG. The drivers was dated 2007 when I decided to check, latest version (2010) was on website.
Updating the drivers stopped the program from crashing.
I assumed since this was a brand new in the box scanner the drivers would be relatively new. WRONG. The drivers was dated 2007 when I decided to check, latest version (2010) was on website.
Updating the drivers stopped the program from crashing.
- Wed Jul 31, 2013 10:12 pm
- Forum: TWAIN & WIA Acquisition
- Topic: Problem finding issue
- Replies: 1
- Views: 3134
Problem finding issue
I realize this is not the correct forum, but I havnt had a response there so Ill repost. I have GdPicture pro sdk (v5) My scanning solution has worked for years now, but I am now having "crashes" when trying to use a Xerox 152 On my desk I have a Epson GT-S50, a Xerox 3125 and a Xerox 152 ...
- Tue Jul 30, 2013 5:17 pm
- Forum: Image Processing & Document Imaging
- Topic: Tough Problem to find
- Replies: 1
- Views: 5817
Tough Problem to find
I have been using gdpicture pro imaging sdk ver 5 for several years now, with little issues. Ive recently had the need to add some new functionality, I have 3 scanners setting on my desk. an Epson ft-s50, and a Xerox documate 3125. These work without issue. I also have a documate 152. and this is wh...
- Thu Sep 11, 2008 10:07 pm
- Forum: TWAIN & WIA Acquisition
- Topic: problems after upgrading
- Replies: 1
- Views: 1631
Re: problems after upgrading
Okay, I further found this
Imaging1.TwainSetAutoFeed(True) 'Set AutoFeed Enabled
Imaging1.TwainSetAutoScan(True) 'To achieve the maximum scanning rate
If I remark out these lines it works, but I need autofeed to be working.
Imaging1.TwainSetAutoFeed(True) 'Set AutoFeed Enabled
Imaging1.TwainSetAutoScan(True) 'To achieve the maximum scanning rate
If I remark out these lines it works, but I need autofeed to be working.
- Thu Sep 11, 2008 10:01 pm
- Forum: TWAIN & WIA Acquisition
- Topic: problems after upgrading
- Replies: 1
- Views: 1631
problems after upgrading
I had an application that worked fine with version gdipicpro 4 After I upgraded to version 5, this code broke. snip--- While Imaging1.CreateImageFromTwain(Me.Handle.ToInt32) <> 0 nImageID = Imaging1.GetNativeImage If nImageID <> 0 Then count += 1 ImageNo = Setting.GetNextDocument '' code to save doc...
- Fri Aug 08, 2008 5:17 pm
- Forum: TWAIN & WIA Acquisition
- Topic: problem building on vista
- Replies: 3
- Views: 2474
Re: problem building on vista
I was having the issue before with a fingerprint library, and was told to turn DEP off,
this worked fine, but after the last round of vista updates, if you turn dep off, you computer
will blue-screen on boot
Does this help at all?
this worked fine, but after the last round of vista updates, if you turn dep off, you computer
will blue-screen on boot
Does this help at all?
- Fri Aug 08, 2008 12:54 am
- Forum: TWAIN & WIA Acquisition
- Topic: problem building on vista
- Replies: 3
- Views: 2474
problem building on vista
I was using gdpicture4, I also downloaded and tried gdpicturepro5 with vs2008 vb.net on vista machine, when I run app I get Attempted to read or write protected memory. This is often an indication that other memory is corrupt." when executing this line If Not Imaging1.TwainOpenDefaultSource The...
- Thu Feb 14, 2008 2:06 am
- Forum: TWAIN & WIA Acquisition
- Topic: Page height
- Replies: 3
- Views: 3402
Re: Page height
what I mean is, it is scanning 8x14 page, even though I tell it to only scan a 8x11 page
So all the scans have an extra 3" of white space at the end.
So all the scans have an extra 3" of white space at the end.
- Mon Feb 11, 2008 7:20 pm
- Forum: TWAIN & WIA Acquisition
- Topic: Page height
- Replies: 3
- Views: 3402
Page height
Im having an issue, no matter what I set the page size, it makes it 1400 I want to use a4 (8.5 x11) here is my code Im playing with Dim nImageID As Integer If Imaging1.TwainOpenDefaultSource() Then InitScanConfig() Imaging1.TwainSetCurrentResolution(100) Imaging1.TwainSetCurrentPixelType(GdPicturePr...
- Mon Feb 11, 2008 2:02 am
- Forum: Example requests & Code samples
- Topic: pdf thumbnails
- Replies: 1
- Views: 2584
pdf thumbnails
Could you give me some direction on how I would open a pdf file and display the first page as a thumbnail in an image control?