Export (0) Print
Expand All

CDXBaseNTo1::OnSurfacePick Method

This topic documents a feature of Visual Filters and Transitions, which is deprecated as of Windows Internet Explorer 9 and obsolete as of Internet Explorer 10.

Called by the base class to enable the derived transform to fully implement surface picking.


virtual HRESULT OnSurfacePick(
    const CDXDBnds &OutPoint,
    ULONG &ulInputIndex,
    CDXDVec &InVec
) = 0;


[in] Coordinates of the point in the transform output space to use for surface picking.
[out] Index of the input that was hit.
[out] Point on the input that was hit, in terms of the input coordinate space.

Return Value

Returns one of the following HRESULT values.

S_FALSE No inputs were at the indicated OutPoint Hitting a sample with an alpha value of zero is considered a miss.
S_OK One of the inputs was chosen, so the returned information is valid.
DXT_S_HITOUTPUT The output surface was hit at the indicated pPoint, but it was not one of the input surfaces. Procedural surfaces, which have no input surface, can only return this value and not a surface index.

See Also

Community Additions

© 2014 Microsoft