Hello all,
performing an acquisition using NativeTransfer, on Event XferDone i ask for image info using the following code
private void twain32_XferDone(object sender, Twain32.XferDoneEventArgs e)
{
Twain32.ImageInfo _info;
_info = e.GetImageInfo();
}
but on the second line i get an exception, whose message is:
MSG out of expected sequence
So I can't read in this case the imageInfo. I need them to know the real size of the image, for measurement purpose.
Thank you.
Comments: Hello, mbukovitz. Your DS is not compliant TWAIN Specification. But you can get size of image if will handle a Twain32.EndXfer event ```C# private void _twain32_EndXfer(object sender,Twain32.EndXferEventArgs e) { try { using(var _image = e.Image) { // ... var _size=_image.Size; // ... } } catch(Exception ex) { // ... } } ```
performing an acquisition using NativeTransfer, on Event XferDone i ask for image info using the following code
private void twain32_XferDone(object sender, Twain32.XferDoneEventArgs e)
{
Twain32.ImageInfo _info;
_info = e.GetImageInfo();
}
but on the second line i get an exception, whose message is:
MSG out of expected sequence
So I can't read in this case the imageInfo. I need them to know the real size of the image, for measurement purpose.
Thank you.
Comments: Hello, mbukovitz. Your DS is not compliant TWAIN Specification. But you can get size of image if will handle a Twain32.EndXfer event ```C# private void _twain32_EndXfer(object sender,Twain32.EndXferEventArgs e) { try { using(var _image = e.Image) { // ... var _size=_image.Size; // ... } } catch(Exception ex) { // ... } } ```