c# - Custom capture size using Microsoft Expression Encoder -


i have lines of c# code able record screen. cannot find workaround in order determine custom video output size. screen resolution 1920x1080, although try assign new size record remains unchanged. (library: microsoft expression encoder, dependencies included)

the code used in button click event:

        screencapturejob _screencapturejob = new screencapturejob();         rectangle _screenrectangle = screen.primaryscreen.bounds;          _screencapturejob.capturerectangle = _screenrectangle;         _screencapturejob.screencapturevideoprofile.size = new size(600, 400); //by doing supposed resize original size 600x400 pixels?         _screencapturejob.screencapturevideoprofile.autofit = true;         _screencapturejob.showflashingboundary = false;         _screencapturejob.screencapturevideoprofile.framerate = 20;         _screencapturejob.capturemousecursor = true;         _screencapturejob.screencapturevideoprofile.smoothstreaming = true;         _screencapturejob.screencapturevideoprofile.quality = 20;         _screencapturejob.outputscreencapturefilename = string.format(@"c:\test.wmv");          if (file.exists(_screencapturejob.outputscreencapturefilename))         {             file.delete(_screencapturejob.outputscreencapturefilename);         }          _screencapturejob.start(); 

thanks in advance!

what need set _screenrectangle custom dimensions:

_screencapturejob.capturerectangle = new rectangle(0, 0, 600, 400); 

the screen recording size can left unassigned.

greetings, nikolay


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -