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 »

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: 60
Joined: Wed Jul 23, 2008 2:47 pm

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

Post by Yuri »

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 »

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: 1963
Joined: Thu Jul 10, 2008 2:21 pm

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

Post by Alex »

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