screenshot

How to screen capture screenshots or movies on the Linux framebuffer

▼魔方 西西 提交于 2019-12-24 13:28:44
问题 How can the linux frame buffer, on Cell Linux, be captured to obtain either screen shots or movies? Is there a tool to do this for a running program, or must the program writing to, and presumably controlling, the frame buffer also handle capture and recording? If so, how would the program do so? 回答1: Many tools for doing so, for example FBGrab and fbdump; look at the sources for those two, it would be pretty easy to extend either one or write your own which captures video instead of just

Saving Screenshot to android gallary via game

若如初见. 提交于 2019-12-24 11:51:35
问题 It takes the screenshot but doesn't show in gallery . the screenshot is saved to android/data/com.company.name/file.name but I want to save it directly to the gallery with filename screenshot So far, here my code is: public void Capture() { string filename = System.DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss"); Application.CaptureScreenshot(filename + ".jpg"); Debug.Log("captured screenshot"); } 回答1: Look for the answer provided here (the second one). It works perfectly. Here's the final code:

Protractor takes blank screenshots when “restartBrowserBetweenTests: true” is set

不想你离开。 提交于 2019-12-24 09:22:08
问题 I'm trying to use protractor-jasmine2-html-reporter to take screenshots of my tests as they run, but it appears to be taking them directly after the browser is restarted due to the "restartBrowserBetweenTests" flag in conf.js being set to "true". I need to use that flag to restart the browser because it seems to be the only way to clear the session sufficiently so that subsequent tests can use the sign in page, rather than the application assuming it's the same user and redirecting them to

How to update UI from BroadcastReceiver after screenshot

丶灬走出姿态 提交于 2019-12-24 07:58:46
问题 Main problem: I need to update the UI after a screenshot occurs. I tried programmatically creating a BroadcastReceiver in onResume() in MainActivity.java and it is not picking up screenshots for some reason. So, I tried a BroadcastReceiver declared in the Manifest and it picks up screenshots correctly, but I cannot update the UI. BroadcastReceiver defined in AndroidManifest.xml as inner class of Activity must be static or I get this error: java.lang.RuntimeException: Unable to instantiate

Is there a way to disable screenshot in Xamarin Forms?

本小妞迷上赌 提交于 2019-12-24 06:31:49
问题 I want my Xamarin Forms application to disable screenshots. Is there a way to do so? Note: I found solutions in pure Android and iOS versions, but I need Xamarin solution. If there is a way to embed pure Android and iOS solution in someway, I also accept that. Thanks :) 回答1: There is no 100% effective way to block user from taking screenshot/record. You have some things you can do but none of them gives you the guarantee that the user didn't do that. I will always need to implement this

Take realtime screenshot while video calling android

匆匆过客 提交于 2019-12-24 06:24:06
问题 I have problem with my android code for taking screenshot while on video calling I found several method for take screenshot on specific layout and this is what I used : private void takeScreenshot() { final FrameLayout container = (FrameLayout) findViewById(R.id.remote_video_view_container); Date now = new Date(); android.text.format.DateFormat.format("yyyy-MM-dd_hh:mm:ss", now); try { // image naming and path to include sd card appending name you choose for file String mPath = Environment

getUserMedia not capturing the screen correctly

旧巷老猫 提交于 2019-12-24 05:53:05
问题 Using the following code: function captureScreen(size) { navigator.webkitGetUserMedia({ audio: false, video: { mandatory: { chromeMediaSource: 'desktop', minWidth: size.width, maxWidth: size.width, minHeight: size.height, maxHeight: size.height, minFrameRate: 1, maxFrameRate: 1 } } }, gotStream, getUserMediaError); function gotStream(stream) { var video = document.createElement('video'); video.addEventListener('loadedmetadata',function(){ var canvas = document.createElement('canvas'); canvas

selenium.captureEntirePageScreenshot does not work but selenium.captureScreenshot works

对着背影说爱祢 提交于 2019-12-24 02:09:53
问题 I'm running Selenium with TestNG using Eclipse and Selenium RC. I used the command: selenium.captureEntirePageScreenshot("\\test.png",""); but got the following error: com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath] Can someone please suggest

Save form as image (screenshot)

你离开我真会死。 提交于 2019-12-24 01:52:53
问题 I have 2 forms. Form 1 contains the content that i need a screenshot of Form 2 contains graphics drawing (this form is always on top but transparent). I need to screen shot the first form without making it on top of form 2 as well as without including content from form 2. here is some what i am working with, which i am trying to fix. Private Function TakeScreenShot(ByVal Control As Control) As Bitmap Dim Screenshot As New Bitmap(Control.Width, Control.Height) Control.DrawToBitmap(Screenshot,

How do I include screenshots of the full page in my serenity report (and not only of the viewport) using ChromeDriver?

孤者浪人 提交于 2019-12-24 01:18:56
问题 I am using serenity in combination with cucumber for automated screen tests and want to include full-page screenshots in my serenity report. The screenshots in the report are normally only a capture of the viewport. Oftentimes however, this doesn't provide enough information as this is only a part of the screen. I found that the capturing of serenity screenshots is a part of driver implementation. As most drivers conform with the W3C definition of screenshots those drivers only capture the