VintaSoft Twain ActiveX Discussions

Questions, comments and suggestions concerning VintaSoft Twain ActiveX.

Board index < VintaSoft Twain < VintaSoft Twain ActiveX Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

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



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?


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


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.


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


Page 1 from 1: 1