screenshot

C# Take ScreenShot of .net control within application and attach to Outlook Email [duplicate]

醉酒当歌 提交于 2019-12-18 02:50:15
问题 This question already has answers here : C#: how to take a screenshot of a portion of screen (4 answers) Closed 4 months ago . Does anyone know how to take a screenshot using C# and limit it to take a picture of a specific container/portion of an application. I do not want the whole screen or whole window of the application. My Panel is simply called: panel1 User would click a "button" and take screenshot of panel1 and attach to email. I would like to take a screen shot of that section only

prevent screen capture in Android apps

独自空忆成欢 提交于 2019-12-18 02:46:47
问题 I was wondering if there is a way to detect through some "onXXXXX" call-back method or received broadcast if some other process is about to take a screen-shot of my app's display. For example if the SDK tools or some other screen capturing app performs a "Screen Capture", I would like to be notified and then decide if I should allow or disallow the screen capture. If this is not possible is there a way to lock the display so no other process can screen capture my display? 回答1: There is no

SDL2 C++ Taking a screenshot

心不动则不痛 提交于 2019-12-18 01:15:15
问题 Hi I would like to know if it is possible to simply take a screenshot with SDL2. I tried SDL_GetWindowSurface but I get an error saying: No hardware accelerated renderers available. I took the code from here. Another solution I thought about is converting a texture to a surface but I didn't manage to do so... Do you have any solution? 回答1: It seems like you are mixing the rendering systems. That method will only work in the context of software rendering. For hardware rendering you should use

Taking website screenshot, server-side, on a Linux rented server, free

雨燕双飞 提交于 2019-12-17 22:44:16
问题 Ok so, right now I can't really afford to pay for any service. I want to be able to take screenshots using my rented server, which is Linux based, and output them on the screen. I know there are a lot of services that do this, but they usually have limits or watermarks, or you have to wait for your screenshot to be taken from the queue. Is there any way to just take the screenshots myself and maybe later cache them or anything? I'm using PHP, but I'm not limited to it; I'm just on a Linux

best way to create video from html5 animation [closed]

╄→гoц情女王★ 提交于 2019-12-17 21:55:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 months ago . I wanted to make a short intro for a video podcast. Being a geeky web developer and not already having access to or knowledge of animation tools, I thought I might take a stab at doing the intro using various html5 techniques. The problem is, how do I turn that into a video clip I can easily drop into iMovie?

Capture iPhone screen with status bar included?

99封情书 提交于 2019-12-17 19:28:28
问题 I am looking for a way to capture a screenshot on the iPhone with the top status bar included, I am currently using the following code: UIGraphicsBeginImageContext(self.view.bounds.size); //self.view.window.frame.size [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil); The above code sucessfully takes a screenshot of the iPhone

C# Out of Memory when Creating Bitmap

核能气质少年 提交于 2019-12-17 18:55:38
问题 I'm creating an application (Windows Form) that allows the user to take a screenshot based on the locations they choose (drag to select area). I wanted to add a little "preview pane" thats zoomed in so the user can select the area they want more precisely (larger pixels). On a mousemove event i have a the following code... private void falseDesktop_MouseMove(object sender, MouseEventArgs e) { zoomBox.Image = showZoomBox(e.Location); zoomBox.Invalidate(); bmpCrop.Dispose(); } private Image

Android read fb0 always give me blackscreen

廉价感情. 提交于 2019-12-17 18:45:34
问题 My device is Nexus 4 running Jelly Bean 4.2. I'm trying to record the screen and send it out. Most codes on internet do the cap by read /dev/graphics/fb0. It works fine in some devices and the older systems. But when I try it on my device, it fail. It only gives me blackscreen and all "0" in the raw data. I have run "adb root" to get the root permission, tried "chmod 777 fb0", "cat fb0 > /sdcard/fb0". Also I have tried codes like "mmap" and "memcpy" to get the data. But all fail. I have

How do you take a Screenshot of a website via .Net code?

☆樱花仙子☆ 提交于 2019-12-17 18:36:08
问题 Is it possible to take a screen shot of any given url using .Net code? What is the easiest way to do it? 回答1: Just stumbled over this: http://pietschsoft.com/post/2008/07/C-Generate-WebPage-Thumbmail-Screenshot-Image.aspx Maybe something you could use? 回答2: I'd suggest using a third-party approach for this, not doing it yourself. If you insist, though, then the heavy-handed way is to use System.Diagnostics.Process to launch a browser, then GetDesktopImage to get a screenshot. I'm sure there's

How to Get a Window or Fullscreen Screenshot in Python 3k? (without PIL)

浪尽此生 提交于 2019-12-17 17:52:29
问题 With python 3, I'd like to get a handle to another window (not part of my application) such that I can either: a) directly capture that window as a screenshot or b) determine its position and size and capture it some other way In case it is important, I am using Windows XP (edit: works in Windows 7 also). I found this solution, but it is not quite what I need since it is full screen and more importantly, PIL to the best of my knowledge does not support 3.x yet. 回答1: Here's how you can do it