[sane-devel] Get raw image from scanner

Thiago Milczarek Sayão thiago.sayao at gmail.com
Tue Nov 29 17:09:23 GMT 2022


Thanks Ralph

I just got each frame and sent it to java thru JNI and joined into a
BufferedImage, it worked.



Em seg., 28 de nov. de 2022 às 17:46, Ralph Little <skelband at gmail.com>
escreveu:

> Hi,
>
> On Mon, Nov 28, 2022 at 12:36 PM Thiago Milczarek Sayão <
> thiago.sayao at gmail.com> wrote:
>
>> Hi,
>>
>> I am developing a C function to return an Raw image to java/JNI.
>>
>> I would like this function to return raw image data being either RGB or
>> GRAY.
>>
>> I'm reading scanimage.c, but it's a hard one for me due to lack of
>> experience.
>>
>> Is there a simpler example I can look at? Or maybe a "higher level API" ?
>>
>>
> If your requirements are very simple, then the regular SANE API is fairly
> straightforward: https://sane-project.gitlab.io/standard/api.html
> The complications come from interacting with the options to set the device
> up as you need.
> However, getting an image from a device is pretty easy..
>
> Cheers,
> Ralph
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20221129/2efc66d9/attachment.htm>


More information about the sane-devel mailing list