Can I transfer in JS image obtained by the method GetImage()

Questions, comments and suggestions concerning VintaSoft Twain ActiveX.

Moderator: Alex

Post Reply
neuro_pro
Posts: 3
Joined: Tue Aug 17, 2010 12:46 pm

Can I transfer in JS image obtained by the method GetImage()

Post by neuro_pro » Tue Aug 17, 2010 1:00 pm

Good day!
Can I transfer in javascript image obtained by the method GetImage ()?
Is it possible in javascript to know the size of the image? Show it on the page?

Yuri
Posts: 56
Joined: Wed Jul 23, 2008 2:47 pm

Re: Can I transfer in JS image obtained by the method GetImage()

Post by Yuri » Tue Aug 17, 2010 4:06 pm

Hi,

Please look into our examples for JavaScript: "\Examples\JavaScript".

There is realized a way how to preview acquired image in IE.

Regards

neuro_pro
Posts: 3
Joined: Tue Aug 17, 2010 12:46 pm

Re: Can I transfer in JS image obtained by the method GetImage()

Post by neuro_pro » Thu Aug 19, 2010 10:11 am

Hello!
I am well acquainted with your examples and understand their essence.

Can I get a JS array of bytes which are image?
I do not know the languages of the VB and VBScript, but maybe they can get an image as a variable.
After all, the function GetImage returns VB object Picture.

Alex
Site Admin
Posts: 1474
Joined: Thu Jul 10, 2008 2:21 pm

Re: Can I transfer in JS image obtained by the method GetImage()

Post by Alex » Mon Aug 30, 2010 1:50 pm

You can get image as:
- IPicture (Image) using VSTwain.GetImage method
- HBITMAP using VSTwain.GetImageAsHBitmap method
- DIB (byte array) using VSTwain.GetImageAsDIB method
- Handle to DIB using VSTwain.GetImageAsHDIB method
- Three dimensional array of bytes using VSTwain.GetImageAsByteArray method

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest