Page 1 of 1

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

Posted: Tue Aug 17, 2010 1:00 pm
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?

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

Posted: Tue Aug 17, 2010 4:06 pm
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

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

Posted: Thu Aug 19, 2010 10:11 am
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.

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

Posted: Mon Aug 30, 2010 1:50 pm
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