Contents 

ScrRecX Video Recorder
Quick Start
Visual Basic Example
Visual C# Example
Visual C++ Example
Objects
FMScrRec
Properties
Alignment
AudioBufferSize
AudioCodecCount
AudioCodecData
AudioCodecName
AudioDeviceCount
AudioDeviceName
AudioInputName
AudioStreamAsMaster
AudioSync
AudioVolume
Bottom
BytesPerSample
CaptureLayeredWindows
Channels
FlashingBorder
FollowMouse
FramesPerSecond
HighlightColor
HighlightCursor
HighlightRadius
HighlightThickness
KeyFrameInterval
Left
RecordAudio
RecordCursor
Right
SamplesPerSecond
Top
VersionString
VideoCodecCount
VideoCodecData
VideoCodecName
VideoFile
VideoFormat
VideoScale
WindowHandle
WMCustomProfile
WMQuality
Methods
ConfigureAudioCodec
ConfigureVideoCodec
EnumAudioDevices
FreeAudioDevices
FreeCodecs
GetAudioCodecIndexByName
GetAudioCodecNameByIndex
GetAudioDeviceIndexByName
GetAudioDeviceNameByIndex
GetAudioInputCount
GetAudioInputNameByIndex
GetElapsedTime
GetRealFPS
GetVideoCodecIndexByName
GetVideoCodecNameByIndex
LoadCodecs
Pause
SelectRectangle
SelectWindow
SetTraceLevel
Start
Stop
Events
EncodingComplete
EncodingError
EncodingProgress
RecordingComplete
RecordingError
Advanced Topics
How to use the unregistered ScrRecX
FM Screen Capture codec
License
Sales FAQ
Contact

ScrRecX online help

Prev Page Next Page

Visual C# Example


using ScrRecXLib;
...
private FMScrRec m_Rec;
...

//
// Create Video Recorder
//
private void CreateVideoRecorder()
{
   // Create ScreenRecorder
   m_Rec = new FMScrRec();
   // Set Maximum Trace Level
   m_Rec.SetTraceLevel(9);   
}

//
// Start Recording
//
private void StartRec()
{
  // Screen Area
  m_Rec.Left = 100;
  m_Rec.Top = 100;
  m_Rec.Right = 400;
  m_Rec.Bottom = 200;
        
  // Video Format
  m_Rec.VideoFormat = 0; // AVI
  // Video Codec
  m_Rec.VideoCodecName = "Microsoft Video 1";
  // Audio Codec
  m_Rec.AudioCodecName = "PCM";
  
  // Screen Area Alignment
  m_Rec.Alignment = 4;
  // Video File
  m_Rec.VideoFile = "test.avi";
  
  // Frame Rate
  m_Rec.FramesPerSecond = 15.0;
  // Record Cursor: Yes
  m_Rec.RecordCursor = 1;
  // Highlight Cursor: No
  m_Rec.HighlightCursor = 0;
  // Flashing Border: Yes
  m_Rec.FlashingBorder = 1;
  // Key Frame Interval
  m_Rec.KeyFrameInterval = 100;
  // Follow Mouse: No
  m_Rec.FollowMouse = 0;
  
  // Record Audio: Yes
  m_Rec.RecordAudio = 1;
 
  // Start Recording
  m_Rec.Start(0);
}

//
// Stop Recording
//
private void StopRec()
{
  m_Rec.Stop();
}
   
Converted from CHM to HTML with chm2web Standard 2.76 (unicode)