screenshot

How to take screenshot of div from a webpage using C# and ASP.NET?

扶醉桌前 提交于 2020-01-10 03:05:07
问题 I would like to create dynamic images from html that I'm generating on website. I have code that generates a PSN Trophy Card, ab Xbox LIVE Gamer Card, a Steam Gamer Card, and an Xfire Gamer Card. Each card is put into its own div and built dynamically from server side code. Is there a way to capture a screenshot of a selected div on a webpage using C# and ASP.NET? 回答1: If you need to take a screenshot you will need to do so client side. So you will need to do so using some client side

obtaining full desktop screenshot from the GPU

瘦欲@ 提交于 2020-01-10 01:16:30
问题 I have been using the Windows API's BitBlt function to perform the screen grab. There are many drawbacks however: DWM and Aero cause a massive slowdown (3ms --> 35ms just to call BitBlt ) -- to work around this would require disabling Aero which I'd just rather not do. The screen flickers and things shift around. Data must be re-transferred to the GPU in order to load data as texture Layered Windows cannot be captured without CAPTUREBLT flag. When enabled, the mouse cursor blinks when

How to upload a screenshot using html2canvas?

泪湿孤枕 提交于 2020-01-09 03:20:28
问题 Using html2canvas how can I save a screen shot to an object? I've been exploring the demos, and see that the function to generate the screenshot is generated as follows: $(window).ready(function() { ('body').html2canvas(); }); What I've tried doing is $(window).ready(function() { canvasRecord = $('body').html2canvas(); dataURL = canvasRecord.toDataURL("image/png"); dataURL = dataURL.replace(/^data:image\/(png|jpg);base64,/, ""); upload(dataURL); }); And, I then pass it to my upload() function

Draw rectangle on button click in C#

懵懂的女人 提交于 2020-01-07 09:22:17
问题 I have form in which background is transparent. I have a button on the form. When I click the button, screenshot of the transparent area is taken and the screenshot is analyzed for a certain reference-image, and if the image is found, a rectangle should be drawn around the reference-image. For now nothing happens when I press the button. I'm using BotSuite Dll, provided here: http://www.botsuite.net/. I My code for the button click is as follows: private void button1_Click(object sender,

iOS7 Screen Capture Prevention / Detection

亡梦爱人 提交于 2020-01-07 05:44:05
问题 In my iOS app I need either prevent the screenshot capture (by pressing combination of Home +Power button), or need to detect before it saved to the Photo library . In previous iOS version before taking screenshot touchesCancelled:withEvent this method will called , but iOS7 onwards this wont work. Apple provide a notification UIApplicationUserDidTakeScreenshotNotification for detecting screenshot capture .The real problem is this will fire only after the screenshot is saved in Photo library

Screenshots on Device vs Simulator

旧巷老猫 提交于 2020-01-06 12:50:49
问题 Why would does this work on simulator but not on a device. I am trying to capture a screenshot of a view that contains more than one AVPlayer.I can snap a frame from a player, but I need the actual screenshot as the view contains a few players, in specific locations on the screen at once. There are multiple threads regarding this topic, but I am yet to find an answer. - (UIImage *) takeScreenShot { UIImage *image; CGSize snapArea = self.view.bounds.size; int bottomTobBarHeight = 44; snapArea

How to make a simple screenshot method using LWJGL?

房东的猫 提交于 2020-01-06 07:55:41
问题 So basically I was messing about with LWJGL for a while now, and I came to a sudden stop with with annoyances surrounding glReadPixels() . And why it will only read from left-bottom -> top-right. So I am here to answer my own question since I figured all this stuff out, And I am hoping my discoveries might be of some use to someone else. As a side-note I am using: glOrtho(0, WIDTH, 0 , HEIGHT, 1, -1); 回答1: So here it is my screen-capture code which can be implemented in any LWJGL application

How can I programmatically capture a screenshot of a playing video?

瘦欲@ 提交于 2020-01-06 01:23:51
问题 I want to capture a screenshot of a playing video in xcode. How can I do it programmatically? I found a screenshot method in apple document as following. The method works fine if I just want to take a screenshot of a view. However, it fails to work with a playing video. - (UIImage*)screenshot { // Create a graphics context with the target size // On iOS 4 and later, use UIGraphicsBeginImageContextWithOptions to take the scale into consideration // On iOS prior to 4, fall back to use

How can I programmatically capture a screenshot of a playing video?

情到浓时终转凉″ 提交于 2020-01-06 01:23:39
问题 I want to capture a screenshot of a playing video in xcode. How can I do it programmatically? I found a screenshot method in apple document as following. The method works fine if I just want to take a screenshot of a view. However, it fails to work with a playing video. - (UIImage*)screenshot { // Create a graphics context with the target size // On iOS 4 and later, use UIGraphicsBeginImageContextWithOptions to take the scale into consideration // On iOS prior to 4, fall back to use

Solve black screen while converting textview into bitmap

你。 提交于 2020-01-05 05:56:34
问题 I want to convert textView into Bitmap but I am getting blackscreen Instead of the data inside textview. Screen I want to convert Screen which I am getting after drawing cache I don't know where I am going wrong. Following is my code abc.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android