public void Save(IntPtr data, int width, int height, int pitchInBytes, PixelFormat format) { String outFile = _fileNaming.Generate(_fileExt); using (Bitmap bmp = new Bitmap(width, height, pitchInBytes, format, data)) { bmp.Save(outFile, _format); } }
public void Start() { if (_dxPlay == null) { _buffer = new FrameBuffer(_FPS, _frameWidth, _frameHeight); _dxPlay = new DxPlay(_buffer, _fileNaming.Generate(".wmv"), _compression, _frameWidth, _frameHeight, _FPS); _dxPlay.Start(); } }