Reducing the imagesize

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
rajnambiar
Posts: 5
Joined: Sun Feb 13, 2011 2:03 pm

Reducing the imagesize

Post by rajnambiar » Sat Feb 04, 2012 4:26 pm

I am using twain and gdviewer. I need to reduce the image size. Currenlty, images are getting saved to 500K Size. I have used the following code.
Twain1.TwainSetCurrentResolution (300)
Twain1.TwainSetCurrentPixelType (TWPT_RGB) 'RGB
Twain1.TwainSetCurrentBitDepth (8) ' 24 bpp

-------

Call Twain1.SaveAsJPEG(defaultDocFolder & myfilename, 75) I tried changing resolution from 300 to 100. But image size remains almost same (10k less).

I tried 75 to 25 in saveasjpeg. Still the size is almost same.

How do I reduce the image size to 50 percent? or 30 percent? (eg: In photoshop, I can do this by adjusting the imagesize and quality.)

rajnambiar
Posts: 5
Joined: Sun Feb 13, 2011 2:03 pm

Re: Reducing the imagesize

Post by rajnambiar » Sat Feb 04, 2012 4:27 pm

Forgo6 to mention that I am using VB6 + ActiveX !

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests