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 <[email protected]> escreveu: > Hi, > > On Mon, Nov 28, 2022 at 12:36 PM Thiago Milczarek Sayão < > [email protected]> 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 >
