Filters the preview image.
HRESULT FilterPreviewImage( [in] LONG lFlags, [in] IWiaItem2 *pWiaChildItem2, [in] RECT InputImageExtents, [in] IStream *pInputStream );
- lFlags [in]
Not used. Set to 0.
- pWiaChildItem2 [in]
The item that is processed.
- InputImageExtents [in]
The coordinates (on the physical acquisition area) of the image that the preview component caches internally.
- pInputStream [in]
A pointer to the IStream interface for the cached image data that is filtered.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Do not call this method directly from your application.
pWiaChildItem2 must be a child item of the pWiaItem2 that was passed into IWiaImageFilter::InitializeFilter.
InputImageExtents is needed because the image processing filter is responsible for cutting out the image area that pWiaChildItem2 represents from the image data passed in through pInputStream.
An application must ensure that pWiaChildItem2 has the same image format (WIA_IPA_FORMAT), resolution (WIA_IPS_XRES and WIA_IPS_YRES) and bit depth (WIA_IPA_DEPTH) as pWiaItem2 had when it was passed into GetNewPreview.
Minimum supported client
|Windows Vista [desktop apps only]|
Minimum supported server
|Windows Server 2008 [desktop apps only]|
Build date: 11/16/2013