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
 Scanning with Scanner Dialog
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - Feb 17 2012 :  02:19:29  Show Profile  Reply
I am scanning with the Scanner TWAIN Dialog. I set the DPI value from the TWAIN Dialog but somehow the image property is always 300 DPI. Is there a way to set the true DPI value after scanning? I am using the example that uses iemioLoad with the OnAcquireBitmap event.

Thanks.

fab

1310 Posts

Posted - Feb 17 2012 :  08:01:32  Show Profile  Reply
It is only possible to instruct the scanner driver to acquire with a given DPI, with:
ImageEnView.IO.TwainParams.XResolution := DPI;
ImageEnView.IO.TwainParams.YResolution := DPI;

You can also set the DPI informative tag, after scanning, with:

ImageEnView.IO.Params.DPI := DPI;

Of course, the above code doesn't change the actual image resolution, but only the informative DPI tag.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: