Sign in to follow this  
LTKeene

Drawing "into" a video stream?

Recommended Posts

LTKeene    100
Hello all, sorry for the bizarre subject heading, here's what I mean: I'm currently doing some drawing in a Windows Form app using Managed DirectX (DX9). I'd like to capture what I'm drawing as a video. The length of the video is not known a prior...in other words the app starts drawing and it should record the animation as a video until the user clicks Stop. Is it possible to use DX9 to draw to the screen and then draw to a video so-to-speak? Or is this completely the wrong way to go about it? Thanks in advance, L

Share this post


Link to post
Share on other sites
Evil Steve    2017
DirectX doesn't have anything like that. The easiest way would be to save each "frame" as a BMP file, and then use a program like VirtualDub to create an. AVI file from the frames.

Apart from that, you'll probably end up having to save each frame as a bitmap in memory, and then using a video library to append the frame to the video.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this