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
 PixelType Values
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sidney Egnew

USA
55 Posts

Posted - Apr 07 2017 :  16:27:34  Show Profile  Reply
Hello,

The AllAcquire demo uses predefined values to populate the color combo box. Some of these values are not valid for my scanners. Additionally, other modes available for my scanners are not listed. The help file indicates the following:

Twain_PixelType_BW (0)Black & white (1 bit)
Twain_PixelType_Grayscale(1) Gray scale (8 bit)
Twain_PixelType_FullRGB (2) Full RGB (24 bit)
Twain_PixelType_Palette (3) Palette (ImageEn can't support this)
Twain_PixelType_CMY (4) CMY (ImageEn can't support this)
Twain_PixelType_CMYK (5) CMYK (ImageEn can't support this)
Twain_PixelType_YUV (6) YUV (ImageEn can't support this)
Twain_PixelType_YUVK (7) YUVK (ImageEn can't support this)
Twain_PixelType_CIEXYZ (8) CIEXYZ (ImageEn can't support this)

Is there a way to select other scanner image modes such as GrayScale, 8 bit Color, etc. that are shown in the twain acquisition dialog?

Thanks, Sidney

xequte

38610 Posts

Posted - Apr 10 2017 :  20:00:07  Show Profile  Reply
Hi Sidney

It sounds like the twain driver is simply exposing both PixelType and BitDepth:

https://www.imageen.com/help/TIETwainParams.PixelType.html
https://www.imageen.com/help/TIETwainParams.BitDepth.html


For a better understanding, see the source code for:

TIEAcquireParams.SetPixelType in iexAcquire.pas

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