Specify image size with AddImage?

Dec 23, 2009 at 3:21 PM

Hi,

I'm trying to combine a series of Image screencaptures into a wmv with the following code. Problem is, the video always comes out with Images that are 320x240 when the source Images are much larger.

How do I specify the resolution of the video?

Thanks!

using (ITimeline timeline = new DefaultTimeline())
{
    timeline.AddAudioGroup();
    
    ITrack videoTrack = timeline.AddVideoGroup(24, 1024, 768).AddTrack();
    
    foreach (Image img in screenCapture) videoTrack.AddImage(img, 0, .5);
    
    videoPath = Utilities.GetTempLocationFilePath("video", "wmv");
    
    IRenderer renderer = new WindowsMediaRenderer(timeline, videoPath, WindowsMediaProfiles.HighQualityVideo);
    
    renderer.Render();
}