[sane-devel] Get raw image from scanner
James Ring
sjr at jdns.org
Tue Nov 29 17:15:44 GMT 2022
Hey Thiago,
On Tue, Nov 29, 2022 at 9:09 AM Thiago Milczarek Sayão <
thiago.sayao at gmail.com> wrote:
> Thanks Ralph
>
> I just got each frame and sent it to java thru JNI and joined into a
> BufferedImage, it worked.
>
jfreesane tries to handle all the different combinations of frame data that
the SANE spec says you can get,
https://github.com/sjamesr/jfreesane/blob/master/src/main/java/au/com/southsky/jfreesane/SaneImage.java#L91
You might wanna steal that/look at it for your code.
Regards,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20221129/fbd61088/attachment.htm>
More information about the sane-devel
mailing list