My screencapturejob.rectangle results in a exception(ArgumentOutOfRange).
Here's my code:
private void RecButton_Checked(object sender, RoutedEventArgs e)
{
System.Drawing.Size monitorSize = SystemInformation.PrimaryMonitorSize;
Rectangle capRect = new Rectangle(0, 0,monitorSize.Height, monitorSize.Width);
job.CaptureRectangle = capRect; -------------
// job.CaptureRectangle = (0,0,capRect.Width,capRect.Height);
job.OutputPath = @"C:\output\ScreenCap";
job.Start();
}
I use expression encoder pro free. It works fine but in this case we get the exception, can anyone tell me what I'm doing wrong.