zt <Windows Image Acquisition (WIA)> from msdn

Windows Image Acquisition (WIA)

Windows Image Acquisition (WIA) is the still image acquisition platform in the Windows family of operating systems starting with Windows Millennium Edition (Windows Me) and Windows XP.

Introduction

The WIA platform enables imaging/graphics applications to interact with imaging hardware and standardizes the interaction between different applications and scanners. This allows those different applications to talk to and interact with those different scanners without requiring the application writers and scanner manufactures to customize their application or drivers for each application-device combination.

Benefits of Windows Image Acquisition 2.0

WIA provides benefits to application developers, device manufacturers, and scanner users who need to interact with imaging hardware.

For Application Writers

  • Windows runs a certification process for WIA drivers so WIA applications are guaranteed to be base-level compatible with all WIA-based scanners.
  • WIA drivers are loaded in the WIA service process, thus providing a more stable driver environment.
  • Applications can be initiated from the scanner scan button via push events supported by the WIA subsystem.
  • The WIA includes a default segmentation filter that all drivers can take advantage of; this way, applications do not have to write code for multi-region scanning for purposes such as separating out a large number of photos spread over a flatbed scanner.

For Device Manufactures

  • WIA driver certification process helps driver developers in establishing that their driver is WIA-compliant.
  • WIA drivers can take advantage of a built-in segmentation filter, image processing filter and error handler, if they choose to do so.
  • WIA-based scanners work right out of the box on Windows with Windows scanning applications such as Windows Fax and Scan and Paint.
  • WIA drivers offer better integration with Windows such as the full device experience.
  • Windows Vista release includes a WSD-WIA class driver that enables all devices compliant with Web Services for Scanner (WS-Scan) protocol to work with WIA applications without any additional driver or software.

For Scanner Users

  • WIA-based scanners can be used from Windows applications such Windows Fax and Scan and Paint without the need for any additional software.
  • WIA-based applications and scanners can also take advantage of WIA add-ons such as the segmentation filter which enables such features as processing a number of pictures on the scanner and scanning them all to individual files without user intervention.
  • WIA-based devices offers a much better integration with other Windows features such as the Device Stage feature for Windows 7.
  • WIA provides a more robust, stable and reliable scanning experience by isolating the driver and the application.

Development of Windows Image Acquisition

The imaging architecture in Windows 2000 and Windows 95 or later consisted of a low-level hardware abstraction, Still Image Architecture (STI), and a high-level set of APIs known as TWAIN. In Windows XP and Windows Me WIA was introduced. WIA is an imaging architecture that builds on STI and does not require TWAIN, although TWAIN is still supported alongside WIA.

WIA 1.0 was introduced in Windows Me and Windows XP and supports scanners, digital cameras and digital video equipment. WIA 2.0 was released with Windows Vista. WIA 2.0 is targeted towards scanners but continues to offer support for legacy WIA 1.0 applications and devices through a WIA 1.0 to WIA 2.0 compatibility layer provided by the WIA service. However, video content support was removed from WIA for Windows Vista. We recommend Windows Portable Devices (WPD) API for digital cameras and digital video equipment in the future. WIA 1.0 as well as STI TWAIN drivers are still supported directly on Windows Vista and Windows 7 alongside native WIA 2.0 device drivers and imaging applications.

Overview of Windows Image Acquisition

WIA provides a framework that allows a device to present its unique capabilities to the operating system and allows imaging applications to invoke those unique capabilities.

The WIA platform includes a data acquisition protocol, a Device Driver Model and Interface (DDI), an API and a dedicated WIA service. The platform also includes a set of built-in kernel mode drivers that support communication with imaging devices locally connected through USB, serial/parallel, SCSI and FireWire interfaces. The WIA subsystem also includes a transparent compatibility layer which allows TWAIN compatible applications to employ and use WIA-driver-based devices.

Network connected imaging devices that support Web Services for Devices (WSD) protocol can also be used from WIA-compliant imaging applications on Windows Vista and Windows 7 out of the box via a WSD-WIA class driver that shipped as part of Windows Vista. The class driver converts WIA calls to WSD calls and vice versa and makes already existing WIA applications work with WSD based scanners without any additional driver.

WIA drivers are made up of a user interface (UI) component and a core driver component, loaded into two different process spaces: UI in the application space and the driver core in the WIA service space. The service runs in Local System context in Windows XP and runs in Local Service context starting with Windows Server 2003 and Windows Vista for enhanced security against buggy or malicious drivers.

The WIA API set exposes imaging applications to still image acquisition hardware functionality by providing support for:

  • Enumeration of available image acquisition devices.
  • Creating connections to multiple devices simultaneously.
  • Querying properties of devices in a standard and expandable manner.
  • Acquiring device data by using standard and high performance transfer mechanisms.
  • Maintaining image properties across data transfers.
  • Notification of device status and scan event handling.

Windows added scripting support to WIA by releasing the WIA Automation Library in 2002 that was incorporated in Windows Vista as Windows Image Acquisition (WIA) Automation Layer and continues to be a part of Windows 7. The WIA Automation Library provides end-to-end image acquisition capabilities to automation-enabled application development environments and programming languages such as Microsoft Visual Basic 6.0, Active Server Pages (ASP), VBScript and C#.

For Windows 7, WIA APIs have additional support to complement the already existing push-scanning support.

  • Auto-configured device initiated scanning with scan parameters configured at the scanner on the device front panel.
  • Automatic source selection for device-initiated scan.

Facts about Windows Image Acquisition 2.0

  • The data transfer mechanism in WIA 2.0 is stream based. The stream abstraction removes the distinction between different transfer types and also allows exchange of mutually agreed-upon metadata between device and application.
  • WIA 2.0 subsystem also includes a basic image processing filter driver add-on that is optionally replaceable by the scanner driver, if the driver chooses to provide a customized image processing filter. The built-in filter enables post processing of images acquired through the scanner. Image processing filter also enables live software previews when small settings such as brightness and contrast are adjusted.
  • The segmentation filter is another handy WIA component that can be replaced by a more customized filter by the scanner driver. The segmentation filter can be used for multi-region scanning. Multi-region scanning, as an example, allows an application to automatically detect different scan regions without any user intervention, such as identifying a bunch of photos lying randomly on the scanner flatbed.
  • WIA 2.0 provides a replaceable/extensible error handler to gracefully handle, and possibly recover from, software, hardware and configuration errors and delays. The error handler is another WIA component that can be replaced with a more customized version by the scanner driver. This extension provides status and error messages during data acquisitions such as "Lamp warming up," "Cover open," "Paper jam," and so on. This extension also allows cleaner support for "Cancel operations."

Developer Audience

The WIA API is designed for use by C/C++ programmers. Familiarity with the Windows  GUI and Component Object Model (COM) interfaces is required.

For developers familiar with Microsoft Visual Basic 6.0, Active Server Pages (ASP), or scripting, WIA provides an automation layer for Windows XP Service Pack 1 (SP1) or later that builds upon and simplifies access to the foundation provided by C/C++. For information about the automation layer, seeWindows Image Acquisition Automation Layer.

Note  The WIA Automation Layer supersedes Windows Image Acquisition (WIA) 1.0 scripting.

Run-Time Requirements

Applications that use the WIA API require Windows XP or later.

WIA Topics

The WIA topics are organized as shown in the following table.

About Windows Image Acquisition General information about WIA
Windows Image Acquisition Drivers WIA driver development
Windows Image Acquisition Automation Layer WIA Automation Layer
WIA Tutorial Walkthrough of code included in the software development kit (SDK) that focuses on specific tasks
Reference Information on WIA interfaces, methods, objects, and data types used in C/C++ and scripting.
时间: 2025-01-07 12:16:35

zt <Windows Image Acquisition (WIA)> from msdn的相关文章

Windows 8.1 正式版 MSDN第二版 官方简体中文/英文版 (专业版/企业版)

说明:文件名cn开头的是简中版文件名en开头的是英文版文件名含x64的为64位版本文件名含x86的为32位版本文件名含enterprise的为企业版文件名含pro_vl的为专业批量授权版文件名不含enterprise和pro_vl的为多版本(专业版&核心版) MSDN第二版: 文件名:cn_windows_8_1_enterprise_x64_dvd_2971863.iso (3.76 GB) SHA1:FBC9DF261E6DBF3E0027A835C7A593D8B524BB73 文件名:c

Windows Server 2016 64位 MSDN原版

经网友建议,提供常用试验用资源.以下软件或系统仅为完成本博客内的各种实验而提供下载.所有软件.系统均为该软件发布方提供的原版文件,未经任何修改.破解等操作.使用目的仅限于学习.测试及实验,符合国家相关法律规定.如您认为拥有以下资源的版权,且共享文件的行为违反了相关法律或您的权益.请在下面留言,我会尽快处理. 跟以前一样,依然不提供序列号,请直接跳过序列号输入页面安装,试用周期180天最长可延长至900天. 以下资源下载链接为电驴的ED2K格式,请使用电驴或迅雷下载. Windows Server

将Windows Server 2016 打造成工作站(20161030更新)

一.基础设置 1.1.关闭自动弹窗: 「开始菜单」 - 「服务器管理器」 - 「仪表板」(或 Win + R或CMD,「ServerManager」), 「管理」 - 「服务器管理器属性」,勾选「在登录时不自动启动服务器管理器」. 1.2.设置CPU性能 Win + R或CMD,「SystemPropertiesPerformance」打开 性能选项.如图,设置CPU性能模式为:程序. 同上,性能选项,设置DEP为:『仅为基本Windows程序和服务启用DEP』. 1.3.设置账户和密码不过期

windows 10 系统服务列表

名称 状态 启动类型 登录为 描述ActiveX Installer (AxInstSV) 手动 本地系统 为从 Internet 安装 ActiveX 控件提供用户帐户控制验证,并基于组策略设置启用对 ActiveX 控件安装的管理.此服务根据要求启动,是否禁用 ActiveX 控件的安装取决于默认浏览器设置.AllJoyn Router Service 手动(触发器启动) 本地服务 路由本地 AllJoyn 客户端的 AllJoyn 消息.如果停止此服务,则自身没有捆绑路由器的 AllJoy

Windows Server 2008常见问题及解决方法

1.如何安装Windows Server 2008 ? 可以采取两种方式:一是硬盘安装,二是光盘安装.无论采取哪种方式,都建议遵循从低版本到高版本的安装顺序,即:Windows xp--Windows Vista--Windows Server 2008 .否则会相当麻烦的.具体安装办法,与安装VISTA相似,本博客有详细介绍. 2.安装到最后一步提示输入密码,我怎么输了N次都过不去呢? 输入错误.Windows Server 2008要求采取比较复杂的密码方式,如果简单输入12345678或者

windows 10 超级优化,同时解决本地磁盘100%的问题

我的系统是笔记本I7处理器,配置了web服务器IIS 和一个数据库(mysql7),同时启用了虚拟机(表中已禁用),以及安装了office2016 .qq等软件,开启了远程连接.无线网络,优化后的系统内存为1.5G,供参考,不用上述功能的可以把表中红色的也进士及禁用掉. 传说可以优化到500M的内存,试好了告诉我,也好学习一下. 在安全模式下,只需要13个进程便可启动系统,但程序及网络都无法使用,如下图 在正常模式下有很大不同,如想正常访问网络.识别硬件需要37个服务(文末也有一张表供参考) 大

Windows server 2003常用设置

1.禁用配置服务器向导   由于不需要服务器设置功能,首先我们先禁止“配置你的服务器”(Manage   Your   Server)向导的出现,你可以在控制面板(Control   Panel)   ->   管理员工具(Administrative   Tools   )->   管理你的服务器(Manage   Your   Server)运行它,然后在窗口的左下角复选“登录时不要显示该页”(Don 't   display   this   page   at   logon). 2.

新装Windows Server 2008 R2的设置

原文链接:https://www.kafan.cn/edu/2898054.html 1.2008设置自动登录 具体方法:开始→运行→输入"rundll32 netplwiz.dll,UsersRunDll"命令打开帐户窗口,先选中要自动登陆的账户,去选"要使用本机,用户必须输入用户名密码"复选框,输入该帐户的密码即可(前提是要关闭UAC). 2.关闭用户账户控制(UAC ) 打开控制面板→用户帐户→打开或关闭用户账户控制→取消使用用户账户控制(UAC)帮助保护您的

Windows server 2008常用优化设置

1. 如何取消开机按 CTRL+ALT+DEL登录? 控制面板→管理工具→本地安全策略→本地策略→安全选项→交互式登录:无须按CTRL+ALT+DEL→启用. 2. 如何取消关机时出现的关机理由选择项? 开始→运行gpedit.msc →计算机配置→管理模板→系统→显示“关闭事件跟踪程序”→禁用. 3. 如何实现自动登录? 开始→运行→输入“control userpasswords2”命令打开用户帐户窗口,先选中要自动登陆的账户,去选“要使用本机,用户必须输入用户名密码”复选框,输入该帐户的密