TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

BITDEPTH 48 (more than 8bit per chanel)

Forums › TWAIN Classic › BITDEPTH 48 (more than 8bit per chanel)

  • This topic has 4 replies, 3 voices, and was last updated 11 years, 11 months ago by spike.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 30, 2009 at 8:30 am #22459 Reply
    gfaitwain
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    Hi,

    I need more then 24 bit (RGB) images from a scanner but be not sure if TWAIN supports more than 8 bit per channel by spezification.
    I’m using TWAIN without GUI-interaction by using MSG_SET …

    I tried getting 48 bits with an Hp scanner. By asking the driver for supported BITDEPTH I got max 16, means 16 bit per channel. Therefor I set the BITHDEPTH to 16 without any error. But when I launch the aquisation of the image, using nativ transfer, I got TWCC_OPERATIONERROR.
    Asking the TWAIN driver just before starting aquisation by calling DAT_IMAGEINFO/MSG_GET, the driver says 48 bit image. I also set some other image caps like gamma and the area. Maybe the driver has problems by applying image processing on 48 bit images?
    Are 48 bit not supported by NATIVTRANSFER or does the problem layes with in the specific twain driver of hp?

    Does anybody else has experiences with getting images more then 24 bit fri?m twain?
    ________
    ROLL A JOINT

    February 5, 2009 at 8:28 pm #24796 Reply
    jimwatters
    Participant
    • Topics - 2
    • Replies - 72
    • Total Posts - 74

    Native transfer only offers a handle to a Device Independent Bitmaps (DIB). DIB are not 16bit per channel.

    You are better using memory or file transfer.

    The order you want to set these items are.
    XFERMECH
    ICAP_IMAGEFILEFORMAT (if using file)
    ICAP_PIXELTYPE
    ICAP_BITDEPTH
    ICAP_COMPRESSION

    Jim Watters

    February 11, 2009 at 5:45 am #24797 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    I’m also trying to scan 48-bit color, but working with a Plustek OptiCard 820, and driving it through EZTwain.

    The scanner driver definitely offers 16 as a value of ICAP_BITDEPTH, and I can set ICAP_PIXELTYPE=TWPT_RGB and then ICAP_BITDEPTH=16 (and I verify the bitdepth=16 setting with a following MSG_GET)
    Then I set XFERMECH to memory, and compression=none.
    I enable the DS, and when XFERREADY arrives I do a DAT_IMAGEINFO/MSG_GET – which tells me the image is 24 bit color!

    Jim – I can try juggling the order of cap setting around to match your suggestion. Is your cap ordering specifically for HP or is that extracted from the TWAIN recommended capability ordering? Have you used that to do 48-bit scanning and if so from what scanner?

    Anybody have a positive experience doing 48-bit color scanning with an under-100$US scanner that can do 48-bit color? Under 200$US?? Any scanner at all???

    February 18, 2009 at 7:04 pm #24798 Reply
    jimwatters
    Participant
    • Topics - 2
    • Replies - 72
    • Total Posts - 74

    If the scanner is enabled with the UI, are those settings chosen? With UI open, if you choose 16 bit, is that what you get? If the transfers produce 16 bit in this case then it is a problem with the DS.

    Regards,
    Jim Watters

    **************************************************
    JFL Peripheral Solutions Inc.
    http://www.jflinc.com/
    Your Expert Source of Custom Software and Services
    for TWAIN Applications, Data Sources,
    Peripheral Drivers and Support Software.
    **************************************************

    February 20, 2009 at 5:36 am #24799 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hey Jim – I’ll ask my customer, who is the one actually trying to do this.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: BITDEPTH 48 (more than 8bit per chanel)
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.