Retrieve supported scan type and document size from WIA

Discussions about WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
karlie
Posts: 4
Joined: Tue Mar 09, 2010 2:47 am

Retrieve supported scan type and document size from WIA

Post by karlie » Wed Sep 21, 2011 8:04 pm

Hello,
How do I check if Color/Gray Scale/BW is supported by my WIA device? Also how do I retrieve the list of supported document sizes? Here is the code that I use for corresponding TWAIN devices, but I didn't find any equivalent WIA functions.
Regards,
Karlie

Code: Select all

int pixelTypeCount = this.gdPicImg.TwainGetAvailablePixelTypeCount();
for (int i = 1; i <= pixelTypeCount; i++)
{
  TwainPixelType pixelType = this.gdPicImg.TwainGetAvailablePixelTypeNo(i);
  this.pixelTypes.Add(new PixelSetting(pixelType));
}

Code: Select all

int documentSizeCount = this.gdPicImg.TwainGetAvailablePaperSizeCount();
for (int i = 1; i <= documentSizeCount; i++)
{
  TwainPaperSize size = this.gdPicImg.TwainGetAvailablePaperSizeNo(i);
  this.paperSizes.Add(new PaperSizeSetting(size));
}

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

Re: Retrieve supported scan type and document size from WIA

Post by Loïc » Thu Sep 22, 2011 12:58 pm

Hi Karlie,
How do I check if Color/Gray Scale/BW is supported by my WIA device?
See:
WiaGetAvailableImageIntentCount()
WiaGetAvailableImageIntentNo()

Also how do I retrieve the list of supported document sizes?
This is not yet supported. We will implement these 2 new functions in the next release:
- WiaGetAvailablePaperSizeCount()
- WiaGetAvailablePaperSizeNo()

Kind regards,

Loïc

karlie
Posts: 4
Joined: Tue Mar 09, 2010 2:47 am

Re: Retrieve supported scan type and document size from WIA

Post by karlie » Wed Sep 28, 2011 6:40 pm

Thank you for your prompt reply. Are the following methods available in the new 8.3 release?
- WiaGetAvailablePaperSizeCount()
- WiaGetAvailablePaperSizeNo()

Normando
Posts: 8
Joined: Thu Sep 22, 2011 6:01 pm
Location: Madrid , Spain

Re: Retrieve supported scan type and document size from WIA

Post by Normando » Mon Jan 16, 2012 7:43 pm

Hello;

I download lastest version and WiaGetAvailablePaperSizeCount is missing.

Where are these functions?

Or

In WIA scanning how get available paper sizes from device?

Thanks

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

Re: Retrieve supported scan type and document size from WIA

Post by Loïc » Mon Jan 16, 2012 7:45 pm

Hello Normando,

Unfortunately we have not been able to push such function. There is nothing in WIA specs to retrieve such information.

You have to use physical size support to determine which normalized format is supported.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest