WMEncProfile2.set_InterlaceMode

Windows Media Encoder SDK banner art

The set_InterlaceMode method specifies a Boolean value indicating whether the video output will be interlaced.

Syntax

void WMEncProfile2.set_InterlaceMode(
  short  iRenderSiteIndex,
  bool  pfInterlaceMode 
);

Parameters

iRenderSiteIndex

[in]  Int16 containing the audience stream index. Because an audience can only contain one stream of each type, iRenderSiteIndex must be zero.

pfInterlaceMode

A Boolean that indicates whether the output will be interlaced.

Return Values

This method does not return a value.

Example Code

using WMEncoderLib;

try
{
// Create a WMEncProfile2 object.
  WMEncProfile2 Pro;
  Pro = new WMEncProfile2();

// Load a custom profile. REPLACE THE FILE NAME.
  Pro.LoadFromFile("C:\\Profiles\\CustomProfile.prx");

// Allow interlaced processing.
  Pro.set_InterlaceMode(0) = true;
}

catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also