ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 dpi scanning
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - Sep 10 2019 :  12:38:39  Show Profile  Reply
Not sure if i am doing that correctly. I am using the scanning demo. When i have the scanner dialog showing up, i can pick the resolution i want to scan with. If i do not use the scanner dialog, i have the automatic acquire set at 300 dpi. That is perfect. now if i use the scanner dialog and pick 200 dpi, i guess the imagenmview has a 200 dpi thumbnail. How can i set a warning that the image scanned should be 300 ?
Is that possible.
Best

xequte

38615 Posts

Posted - Sep 11 2019 :  16:26:16  Show Profile  Reply
Hi

If you are acquiring with the scanner's dialog, then it is not possible to show a warning message (after the dialog), because the whole transaction is handled by the Twain driver.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 11 2019 :  20:59:12  Show Profile  Reply
thank you. i just wanted to know if it would be possible for you select the imageenmview to find out the dpi but it looks like imageenmview does not do that.
Go to Top of Page

xequte

38615 Posts

Posted - Sep 11 2019 :  21:51:22  Show Profile  Reply
Sorry, I may be misunderstanding your requirements.

You can get/set the DPI using ImageEnMView.MIO.AcquireParams.XResolution:

https://www.imageen.com/help/TIEAcquireParams.XResolution.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 12 2019 :  08:56:34  Show Profile  Reply
Nigel, let me try to re explain. When i use the demo and i acquire using the showdialog, i get a thumbnail in the imagennmview component. Now when i select this image by clicking on it, i would like a dialog to pop up to show the resolution it was scanned. Is that possible ?
Thanks
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 12 2019 :  10:56:41  Show Profile  Reply
Never mind. i reread your message and i think i got it.
Appreciate it
Best
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 12 2019 :  11:42:35  Show Profile  Reply
Nope, i scan with the dialog at 360. i click on the image in imagenmview and it shows 300 and not 360. I wonder why. Advice ?

ShowMessage(FloatToStr(ImageEnMView1.MIO.AcquireParams.XResolution));
Go to Top of Page

xequte

38615 Posts

Posted - Sep 15 2019 :  17:37:47  Show Profile  Reply
Oh, sorry, I misunderstood.

The scanning DPI should be applied to the image DPI, so, for example, the DPI of the first image would be:

ImageEnMView1.MIO.Params[ 0 ].Dpi

https://www.imageen.com/help/TIOParams.Dpi.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Sep 16 2019 :  10:12:42  Show Profile  Reply
Just what i needed. thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: