WMT_VIDEOIMAGE_TRANSITION_RECTANGLE

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The rectangle transition reveals the new image in a rectangle within the frame.

Parameters

The following table describes the parameters used by this transition and lists the members of the WMT_VIDEOIMAGE_SAMPLE2 structure to which they are assigned.

Parameter Structure member Description
Center X fEffectPara0 X-coordinate, relative to the video frame, of the center of the rectangle.
Center Y fEffectPara1 Y-coordinate, relative to the video frame, of the center of the rectangle.
Width fEffectPara2 Width of the rectangle in pixels.
Height fEffectPara3 Height of the rectangle in pixels.
Composition fEffectPara4 Set to one of the following values:
  • 0 - Specifies normal composition, in which the previous image is the background, and the current image is the foreground.
  • 1 - Specifies reversed composition, in which the current image is the background image, and the previous image is the foreground

Requirements

Requirement Value
Header
Wmsdkidl.h

See also

Video Image Transitions