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
 ImageEnMView.MIO.AcquireParams & ComboBox
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

84 Posts

Posted - May 14 2021 :  07:07:43  Show Profile  Reply
Hi,

using ImageEn 10.0.0 an ImageEnMView1.MIO.AcquireParams value set by a ComboBox.ItemIndex is altered +1.

Example:

case cbxPixelType.ItemIndex of
  0: ImageEnMView1.MIO.AcquireParams.PixelType := ieapMonochrome;
  1: ImageEnMView1.MIO.AcquireParams.PixelType := ieap8BitGrayScale;
  2: ImageEnMView1.MIO.AcquireParams.PixelType := ieapFullColor;
end;

Passing ItemIndex = 0 the result is PixelType = ieap8BitGrayScale (which is ItemIndex = 1).

Al

xequte

6525 Posts

Posted - May 16 2021 :  01:35:56  Show Profile  Reply
Hi Al

If you set PixelType to a format that is unsupported by your device, it will be set to the closest match. You can determine what formats the device supports by using: ImageEnMView1.MIO.AcquireParams.IsPixelTypeSupported()

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


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

aleatprog

84 Posts

Posted - May 16 2021 :  04:06:00  Show Profile  Reply
Hi Nigel,

b/w scanning is supported by the device and using ImageEnMView1.MIO.AcquireParams.VisibleDialog the same device generates b/w images.

It's a WIA device. TIEAcquireParams.IsPixelTypeSupported returned true.

Al
Go to Top of Page

xequte

6525 Posts

Posted - May 16 2021 :  19:31:20  Show Profile  Reply
Hi Al

Hmm, it looks like some devices also require WIA_IPA_DEPTH to be specified. I will fix this for 10.0.2. You can email me for an update.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: