Web Scanning properties at client side JavaScript
Posted: Wed Aug 11, 2021 12:18 pm
I am using JavaScript and ASP.NET MVC for using GdPicture14.WEB.DocuVieware. I will have textbox where user will enter brightness and contrast values and after that user will upload image, PDF or use TwainAcquireToNewDocument to upload and that user entered values of brightness and contrast should apply to that uploaded file. How can I achieve this in JavaScript. I have gone through documentation but cannot find it in DocuViewareAPI. Yes, this functionality is in gdpictureImaging but I how can I use this in JavaScript client side.
One more question over here is what is difference between SetBrightness and TwainSetBrightness because at server side I was calling TwainSetBrightness and to do that I read from documentation that the result of TwainGetState() should be 4 i.e SOURCE_OPEN but when I called TwainGetState() it gives 3 i.e TWAIN_SM_OPEN. How can I do it to 4. In windows form application we can use _oGdPictureImaging.TwainSelectSource(IntPtr.Handle) and after that we can have 4 i.e SOURCE_OPEN. But we cannot have IntPtr.Handle in asp.net mvc or in JavaScript. So, how to move state to 4 to use TwainSetBrightness.
I am using almost latest DLL's
GdPicture.NET.14.WEB.DocuVieware.dll
GdPicture.NET.14.filters.64.dll
GdPicture.NET.14.image.gdimgplug.64.dll
GdPicture.NET.14.Imaging.Rendering.Skia.64.dll
I have attached files, these are not executable but surely you can get the idea what I have done until now.
One more question over here is what is difference between SetBrightness and TwainSetBrightness because at server side I was calling TwainSetBrightness and to do that I read from documentation that the result of TwainGetState() should be 4 i.e SOURCE_OPEN but when I called TwainGetState() it gives 3 i.e TWAIN_SM_OPEN. How can I do it to 4. In windows form application we can use _oGdPictureImaging.TwainSelectSource(IntPtr.Handle) and after that we can have 4 i.e SOURCE_OPEN. But we cannot have IntPtr.Handle in asp.net mvc or in JavaScript. So, how to move state to 4 to use TwainSetBrightness.
I am using almost latest DLL's
GdPicture.NET.14.WEB.DocuVieware.dll
GdPicture.NET.14.filters.64.dll
GdPicture.NET.14.image.gdimgplug.64.dll
GdPicture.NET.14.Imaging.Rendering.Skia.64.dll
I have attached files, these are not executable but surely you can get the idea what I have done until now.