Mark Pemburn <mark at pemburn.com> wrote:

Hi,

>    I had a real "Doh!" moment when I realized that this was exactly
> what was happening (over-writing the buffer with each call to
> sane_read).  Once I set up a second buffer and appended the partial
> data to with each pass, I was finally able to see the whole beautiful
> scanned image in my UI.

Not entirely sure what you mean in the above, so just in case: you
don't need a second buffer and copying data around, using a second
pointer will do.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org>                                  GPG KeyID 0xF5D65169

Reply via email to