Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 2.19 KB

nf-wiamicro-setpixelwindow.md

File metadata and controls

85 lines (62 loc) · 2.19 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:wiamicro.SetPixelWindow
SetPixelWindow function (wiamicro.h)
The SetPixelWindow function sets the image area to be scanned.
image\setpixelwindow.htm
image
05/03/2018
SetPixelWindow function
MicroDrv_45542a77-e61e-49ba-a9f3-df7d8dd57402.xml, SetPixelWindow, SetPixelWindow function [Imaging Devices], image.setpixelwindow, wiamicro/SetPixelWindow
wiamicro.h
Wiamicro.h
Desktop
Windows
SetPixelWindow
wiamicro/SetPixelWindow
APIRef
kbSyntax
HeaderDef
wiamicro.h
SetPixelWindow

SetPixelWindow function

-description

The SetPixelWindow function sets the image area to be scanned.

-parameters

-param pScanInfo [in, out]

Points to a SCANINFO structure that represents the current state of the device. This is stored by the WIA Flatbed driver to guarantee synchronized settings between the microdriver and the WIA Flatbed driver.

-param x

Specifies the horizontal position value for the left side of the selection rectangle in pixels.

-param y

Specifies the vertical position value for the top of the selection rectangle in pixels.

-param xExtent

Specifies the width of the selection rectangle in pixels.

-param yExtent

Specifies the height of the selection rectangle in pixels.

-returns

If the function succeeds, it returns S_OK. If the function fails, it returns a standard COM error code.

-remarks

In this function, the microdriver should set up the Window member of the SCANINFO structure, making any device-specific adjustments that are necessary.

-see-also

SCANINFO

WIA Microdriver Structures