This project is read-only.

Specify image size with AddImage?

Dec 23, 2009 at 4:21 PM


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?


using (ITimeline timeline = new DefaultTimeline())
    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);