TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Tue May 22, 2012 2:20 am




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Setting up the Image Resolution in HTML/JavaScript web code
PostPosted: Thu Oct 27, 2005 5:01 pm 
Offline

Joined: Tue Oct 18, 2005 1:30 pm
Posts: 13
Hi,

I need to setup the image resolution in HTML/Javascript web code. Could you please provide inputs and sample piece of code in Javascript.


Thanks,
Sudarshan

_________________
Sudarshan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 28, 2005 7:02 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi sudarshan

I have sent the sample code to your registered email box.

Thanks.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 28, 2005 10:33 am 
Offline

Joined: Tue Oct 18, 2005 1:30 pm
Posts: 13
Hi,
Thanks for the code. I could able to setup the resolution. Can you provide me information on how to set the image size in html/javascript code.

Thanks,
Sudarshan

_________________
Sudarshan


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 31, 2005 1:47 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi Sudarshan,

You can use ChangeImageSize method to set the the display size of the scanned image. Is this what you need?

Thanks.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 7:06 pm 
Offline

Joined: Thu Feb 02, 2006 3:11 pm
Posts: 3
I need to setup the image resolution in HTML/Javascript web code. Could you please provide inputs and sample piece of code in Javascript.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 1:58 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
You can set the image resolution through Resolution property. For example, you can input the following line of code:

Code:
       frmSample.WebTwain1.Resolution = 100;        //set Resolution


Is this what you want?

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: DynamicWebTwain1.Resolution = 0
PostPosted: Thu May 18, 2006 11:17 pm 
Offline

Joined: Thu May 18, 2006 11:13 pm
Posts: 5
When I set the Resolution property to 300 and then alert() it, it shows 0 all the time. I do this in JavaScript before calling AcquireImage(). I also tried setting it like this: <param name="Resolution" value="300">. In the scanning software (HP PrecisionScan LTX) there is always its default value (200dpi).


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 21, 2006 10:34 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
Did you set the Resolution property after calling OpenSource()? Please make sure the Resolution property is used after calling OpenSource().

If you still have a problem, please let us know the error information(check ErrorCode property and ErrorString property).

Thanks.

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


Last edited by Robert on Mon May 22, 2006 9:45 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 3:59 am 
Offline

Joined: Thu May 18, 2006 11:13 pm
Posts: 5
I did not call OpenSource at all. I did not receive any error either. So is this sequence right? This seems to work.
frmScan.DynamicWebTwain1.OpenSource();
frmScan.DynamicWebTwain1.Resolution = 300;
frmScan.DynamicWebTwain1.AcquireImage();


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 9:43 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
Quote:
frmScan.DynamicWebTwain1.OpenSource();
frmScan.DynamicWebTwain1.Resolution = 300;
frmScan.DynamicWebTwain1.AcquireImage();

Yes. This is the right sequence.

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

It is currently Tue May 22, 2012 2:20 am


Who is online

Users browsing this forum: hlryndjugycm, qexjotsvmdc and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog