MFOverlayRect Method (MFFrameClass)
frame for overlay
frame mask
rectangle for overlay
overlay flags
transparency: 0.0 - transparent (no mix), 1.0 - solid.
additional properties (for example, audio_gain)
audio buffer's ID
Mixes frames - overlays _pFrameOverlay frame over this frame, the position is from top-left corner, for 4:2:2 images (e.g. UYVY) horizontal position is aligned by two (e.g. 21->20). By default audio gain is calculated based on overlay size and transparency or can be specified via 'audio_gain' props.
Syntax
Public Overridable Sub MFOverlayRect( _
   ByVal _pFrameOverlay As MFFrame, _
   ByVal _pFrameMask As MFFrame, _
   ByRef _pRect As MF_RECT, _
   ByVal _eMFOverlayFlags As eMFOverlayFlags, _
   ByVal _dblAlpha As Double, _
   ByVal _bsPropsList As String, _
   ByVal _bsAudioBufferID As String _
) 
public procedure MFOverlayRect( 
    _pFrameOverlay: MFFrame;
    _pFrameMask: MFFrame;
   var  _pRect: MF_RECT;
    _eMFOverlayFlags: eMFOverlayFlags;
    _dblAlpha: Double;
    _bsPropsList: String;
    _bsAudioBufferID: String
); virtual; 

Parameters

_pFrameOverlay
frame for overlay
_pFrameMask
frame mask
_pRect
rectangle for overlay
_eMFOverlayFlags
overlay flags
_dblAlpha
transparency: 0.0 - transparent (no mix), 1.0 - solid.
_bsPropsList
additional properties (for example, audio_gain)
_bsAudioBufferID
audio buffer's ID
See Also

Reference

MFFrameClass Class
MFFrameClass Members