Twain Scanning Color

Example requests & Code samples for GdPicture Toolkits.
Post Reply
polilla
Posts: 3
Joined: Fri May 08, 2015 6:55 pm

Twain Scanning Color

Post by polilla » Fri May 08, 2015 8:29 pm

What is the twain instruction or configuration to send scan in color

Example

m_GdPictureImaging.Twain XXXXXXX

Thanks

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Twain Scanning Color

Post by Loïc » Sun May 10, 2015 1:24 pm

Hello,

You have to use the TwainSetPixelType method.
See:
https://www.gdpicture.com/guides/gdpicture/web ... lType.html

Kind regards,

Loïc

polilla
Posts: 3
Joined: Fri May 08, 2015 6:55 pm

Re: Twain Scanning Color

Post by polilla » Mon May 11, 2015 7:10 pm

When I include the line m_GdPictureImaging.TwainSetPixelType(true); in acquireTWAINadf function, she not scan, if I delete the line the scan work, i need scan documents in color

if (status == 0)
{
m_GdPictureImaging.TwainSetAutoFeed(true);
m_GdPictureImaging.TwainSetAutoScan(true);
m_GdPictureImaging.TwainSetHideUI(true);
m_GdPictureImaging.TwainSetPixelType(true); // Error

polilla
Posts: 3
Joined: Fri May 08, 2015 6:55 pm

Re: Twain Scanning Color

Post by polilla » Tue May 12, 2015 12:54 am

I change m_GdPictureImaging.TwainSetPixelType (true); by m_GdPictureImaging.TwainSetPixelType (2); and it worked me, thank you very much

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests