Questions tagged [capture]

capture is the process of converting a set of pixels on a screen into a bitmap image stored in memory

1457 questions
34
votes
2 answers

Android VpnService to capture packets won't capture packets

I been searching for my answer for a couple of hours now and I can't figure it out. Please help. What I want to do is to use the VpnService in Android to grab network packets like the application tPacketCapture I started by using the ToyVpn sample…
Juan Acevedo
  • 1,768
  • 2
  • 20
  • 39
33
votes
7 answers

How to get a screen capture of a .Net WinForms control programmatically?

How do you programmatically obtain a picture of a .Net control?
user34787
  • 353
  • 1
  • 3
  • 7
32
votes
5 answers

How can I mock a method in easymock that shall return one of its parameters?

public Object doSomething(Object o); which I want to mock. It should just return its parameter. I tried: Capture copyCaptcher = new Capture(); expect(mock.doSomething(capture(copyCaptcher))) …
Jan
  • 2,803
  • 6
  • 36
  • 57
30
votes
4 answers

Android camera unexplainable rotation on capture for some devices (not in EXIF)

What I'm doing seems like it should be simple, but I'm still lost after I've read every possible Stackoverflow answer I can find and Googled every article I can find. I'm using a preview SurfaceView and capturing an image from an activity that is…
Scott Merritt
  • 1,284
  • 2
  • 13
  • 24
27
votes
4 answers

C# trying to capture the KeyDown event on a form

I am creating a small game, the game is printed onto a panel on a windows form. Now i want to capture the keydown event to see if its the arrow keys that has been pressed, the problem however is that i can't seem to capture it. Let me explain, on…
Patrick
  • 5,442
  • 9
  • 53
  • 104
26
votes
5 answers

Can output from OutputDebugString be viewed in Visual Studio's output window?

I am using C# and Visual Studio 2010. When I use OutputDebugString to write debug information, should it show up in the output window? I can see the output from OutputDebugString in DebugView, but I thought I would see it in Visual Studio's Output…
wageoghe
  • 27,390
  • 13
  • 88
  • 116
22
votes
2 answers

What is a capture conversion in Java and can anyone give me examples?

I've noticed JLS talks of 5.1.10 Capture Conversion, but I fail to understand what they are. Can anyone explain them to me/give examples?
John Assymptoth
  • 8,227
  • 12
  • 49
  • 68
22
votes
5 answers

Record a video of the screen using .NET technologies

Is there a way to record the screen, either desktop or window, using .NET technologies? My goal is something free. I like the idea of small, low CPU usage, and simple, but I would consider other options if they created a better final product. In a…
Chris Craft
  • 5,285
  • 6
  • 46
  • 63
22
votes
3 answers

Which can replace capturePicture function

I have a question. At this time, the capturePicture of WebView is deprecated. I want to ask if there is a way to replace the function. I meant it can capture entire of the webview (not only the view is displayed) Thanks
lolyoshi
  • 1,536
  • 3
  • 24
  • 42
22
votes
5 answers

How do generics of generics work?

While I do understand some of the corner-cases of generics, I'm missing something with the following example. I have the following class 1 public class Test { 2 public static void main(String[] args) { 3 Test t = new…
Jonathan
  • 2,698
  • 24
  • 37
20
votes
3 answers

Prevent other applications form capturing/recording screen

Basically i want VIDEO PIRACY PROTECTION My application has video streaming and I want to protect my video streaming from other applications. Other applications should not be able to capture screen while my video is playing. Any suggestions how can…
Ajay
  • 552
  • 2
  • 4
  • 16
19
votes
4 answers

Detect only screenshot with FileObserver Android

I am currently developing an application for Android and wanted to know how to detect a screenshot. I tried with FileObserver but the problem is that all events are detected ( when device goes into sleep, message, etc. ) . How to detect only…
Nachding
  • 465
  • 2
  • 10
  • 20
18
votes
2 answers

bash variable capture stderr and stdout separately or get exit value

I need to capture the output and error of a command in my bash script and know whether the command succeeded or not. At the moment, I am capturing both like this: output=$(mycommand 2>&1) I then need to check the exit value of mycommand. If it…
mhost
  • 6,930
  • 5
  • 38
  • 45
18
votes
2 answers

Capturing mouse/keyboard events outside of form (app running in background)

I have an app that runs in the background (minimized/task tray). I need to be able to detect mouse activity (clicks, move) as well as keyboard activity. What is the best way to do this given the constraint that my window is not "focused" ?
Andy Hin
  • 30,345
  • 42
  • 99
  • 142
1
2
3
97 98