WIA Automation for scanner color intent is not working

眉间皱痕 提交于 2019-12-03 13:51:39

In case anyone else is wondering, you have to set "4104" as well. By default it was set to 1 bit depth. That did the trick for me.

setItem(Item1, "4104", 24);

In order to find this out, I had to enumerate all the properties and see what they were set to:

foreach (Property propertyItem in item.Properties)
{
    if (!propertyItem.IsReadOnly)
    {
        Console.WriteLine(String.Format("{0}\t{1}\t{2}", propertyItem.Name, propertyItem.PropertyID, propertyItem.get_Value()));
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!