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));
}