screen-capture

In any languages, Can I capture a webpage and save it image file? (no install, no activeX)

Deadly 提交于 2019-12-01 14:50:55
I heard it is possible to capture webpages by using PHP(maybe above 6.0) on windows server. I got some sample code and tested. but there are no code to perform rightly. If you know some right ways to capture webpage save it image file on web applications? Please teach me. you could use the browsershots api http://browsershots.org/ with the xml-rpc interface you really could use almost any language to access it. http://api.browsershots.org/xmlrpc/ Though you have asked for a PHP solution, I would like to share yet another solution with Perl. WWW::Mechanize along with LWP::UserAgent and HTML:

GLUT screen capture in C

亡梦爱人 提交于 2019-12-01 12:12:08
I'm trying to do a screen capture in GLUT and I'm having a bit of an issue. glReadPixels() seems to crash my program with an Access violoation writing location 0x00000000 The thing that is weird is the file is created in the root of the project, and is obviously empty. I set up some printf commands quickly and it appears that the code crashes each time during the glReadPixels() method. I feel the issue maybe the variable 'pixels'. Im having trouble figuring out the correct way to define this so that the RGB values are written to it. Any tips would be appreciated. void savePPM(char ppmFileName[

PHPUnit Selenium captureScreenshotOnFailure does not work?

倖福魔咒の 提交于 2019-12-01 06:46:32
I am using PHPUnit 3.4.12 to drive my selenium tests. I'd like to be able to get a screenshot taken automatically when a test fails. This should be supported as explained at http://www.phpunit.de/manual/current/en/selenium.html#selenium.seleniumtestcase.examples.WebTest2.php class WebTest { protected $captureScreenshotOnFailure = true; protected $screenshotPath = 'C:\selenium'; protected $screnshotUrl = 'http://localhost/screenshots'; public function testLandingPage($selenium) { $selenium->open("http://www.example.com"); $selenium->fail("fail"); ... } } As you can see, I am making the test to

PHPUnit Selenium captureScreenshotOnFailure does not work?

做~自己de王妃 提交于 2019-12-01 05:27:36
问题 I am using PHPUnit 3.4.12 to drive my selenium tests. I'd like to be able to get a screenshot taken automatically when a test fails. This should be supported as explained at http://www.phpunit.de/manual/current/en/selenium.html#selenium.seleniumtestcase.examples.WebTest2.php class WebTest { protected $captureScreenshotOnFailure = true; protected $screenshotPath = 'C:\selenium'; protected $screnshotUrl = 'http://localhost/screenshots'; public function testLandingPage($selenium) { $selenium-

Java: Capture video of what's on the screen

邮差的信 提交于 2019-12-01 05:18:11
问题 We are considering writing a software in Java that records whats monitor for certain durations of time while it is running. Do you have any suggestions on how to efficiently capture the monitor output? The less CPU it takes the more often we can capture the screen and the smoother a video we can generate without interfering with the other apps that are running. An existing Open Source program in Java would work if it is not too difficult to copy out the screen capture section. I hope it won't

C# Capturing Direct 3D Screen

别来无恙 提交于 2019-12-01 03:50:13
I have been fooling around with screen capture for awhile now and I managed to capture the entire screen, certain areas on the screen etc... But when I go into a game and try to capture the screen, it completely ignores the game and instead, captures the desktop (or whatever is behind the game window). Another interesting fact is that the same thing happens with the PrtScn button. Any ideas on how to capture a game's screen? vcsjones The screen capturing technique you are using works well for capturing things that aren't hardware accelerated. I suspect you'd have the same problem trying to

Record screen (screencast) using HTML5, e.g. getUserMedia or something?

强颜欢笑 提交于 2019-12-01 00:32:10
Is there some HTML5 API that can help me record the screen (screencast)? I know about recording webcams etc, but I need the screen it self. It would help even more if this API was actually implemented in some cross-platform browser. Screen capture is available as an experimental feature in Chrome, and you must enable it in your browser settings (chrome://flags/#enable-usermedia-screen-capture). Also, it seems to only work on an https connection. navigator.getUserMedia({ video: { mandatory: { chromeMediaSource: 'screen' // maxWidth: 640, // maxHeight: 480 } } }, function (stream) { //success!

C# Capturing Direct 3D Screen

戏子无情 提交于 2019-12-01 00:27:07
问题 I have been fooling around with screen capture for awhile now and I managed to capture the entire screen, certain areas on the screen etc... But when I go into a game and try to capture the screen, it completely ignores the game and instead, captures the desktop (or whatever is behind the game window). Another interesting fact is that the same thing happens with the PrtScn button. Any ideas on how to capture a game's screen? 回答1: The screen capturing technique you are using works well for

Record screen (screencast) using HTML5, e.g. getUserMedia or something?

会有一股神秘感。 提交于 2019-11-30 19:24:46
问题 Is there some HTML5 API that can help me record the screen (screencast)? I know about recording webcams etc, but I need the screen it self. It would help even more if this API was actually implemented in some cross-platform browser. 回答1: Screen capture is available as an experimental feature in Chrome, and you must enable it in your browser settings (chrome://flags/#enable-usermedia-screen-capture). Also, it seems to only work on an https connection. navigator.getUserMedia({ video: {

fastest method to capture game screen shots in c#?(more than20 images per second)

隐身守侯 提交于 2019-11-30 15:37:49
How can i make screenshoots to the entire game screen very fast? Somthing like 20-30 per second?(i want to convert them to video) [[1]] I've tried WMEncoder.Results were that WMEncoder can capture the screen and regions of screen only in a video format (wma) using a set of preconfigured codecs. (29 fps best encode result).WMEncoder can not make screenshots. [[2]] I've tried DirectX : Surface s = device.CreateOffscreenPlainSurface( Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, Format.A8R8G8B8, Pool.SystemMemory); device.GetFrontBufferData(0, s); SurfaceLoader.Save("c:\