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
10
votes
6 answers

ios how to capture a particular portion of screen

I want to capture a particular portion of iPhone screen. I used UIGraphicsBeginImageContextWithOptions, but couldn't capture a portion of screen with this. Please help me.
Bai
  • 135
  • 1
  • 2
  • 8
10
votes
2 answers

Android 11 Capture image using Camera

Documentation - https://developer.android.com/training/camera/photobasics I have followed all the required steps to capture image using camera. private void dispatchTakePictureIntent() { Intent takePictureIntent = new…
towhid
  • 2,778
  • 5
  • 18
  • 28
10
votes
1 answer

Releasing mouse capture and letting mouse click pass through

I have a control that is similar to a Popup or Menu. I want to display it and when the user clicks outside the bounds of the box, have it hide itself. I've used Mouse.Capture(this, CaptureMode.SubTree) as well as re-acquired the capture the same…
Geoff Cox
  • 6,102
  • 2
  • 27
  • 30
10
votes
1 answer

how do I implement "Choose Existing Photo" in my app like in default iphone phonebook?

I want to develop an app which has functionality same as iphone phonebook capturing image and choosing iamge, what should I to use for doing such I have made an UIImageView and a button for UIActionSheet, now I want to perform "Take Photo" and…
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
10
votes
4 answers

Mockito Capture is not maintaining captured list at time of capturing

In Mockito we have a situation where the capture of a list doesn't return the expected result. Test case: We add "Pip" to a list We capture the list We add "Sok" to the list. In our assert we only expect "Pip" to be there but "Sok" is there too.…
Nos
  • 1,024
  • 1
  • 8
  • 14
10
votes
1 answer

Capture image/screenshot of SCNView with SCNNode hidden: drawViewHierarchyInRect afterScreenUpdates not working

The code below captures a screenshot of SCNView1, but it's not quite working. SCNView1 contains Node1. The goal is to capture SCNView1 without Node1. However, setting afterScreenUpdates to true (or false) doesn't help: the screenshot contains Node1…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
10
votes
1 answer

How to capture return value from function in vim?

Example: function! MyFunction() exe 'call Include("'.mykeyw.'")' Return value??? endfunction function! Include(keyw) if condition == "" return 0 endif endfunction If return in Include() is invoked I want to stop executing…
Reman
  • 7,931
  • 11
  • 55
  • 97
10
votes
2 answers

Access C++14 lambda captures like struct members

AFAIK, C++11/14 does not allow in-place definition of a new return type while defining a lambda. However, it seems a C++14 lambda capture expression essentially creates an anonymous type with one or more "members" and an operator (). So, why is that…
Sumant
  • 4,286
  • 1
  • 23
  • 31
10
votes
2 answers

How to capture a webview to bitmap in Android?

I have a webview, and I need to scroll down to view all the content. Now, I want to capture the entire of the webview to a bitmap. I looked for many times. People suggested me use the function capturePicture(). However, this function is deprecated.…
lolyoshi
  • 1,536
  • 3
  • 24
  • 42
10
votes
3 answers

How to capture full HTTP request data (headers and body) with PHP?

I have a problem implementing an API that works with Java, but fails to work with cURL. We've gone through everything so far and there must be something that is different between the requests that Java makes and what we make. In PHP we can get…
kingmaple
  • 4,200
  • 5
  • 32
  • 44
9
votes
2 answers

How to capture screen image with mouse pointer on it in Java

How to capture screen image with mouse pointer on it in Java? In know that i can capture screen with Robot class, but it captures screen without mouse pointer on it, so this is not an solution for me.
solgar
  • 4,312
  • 2
  • 26
  • 30
9
votes
3 answers

Lambda: Why are captured-by-value values const, but capture-by-reference values not?

Why are captured-by-value values const, but captured-by-reference objects not: int a; auto compile_error = [=]() { a = 1; } auto compiles_ok = [&]() { a = 1; } To me this seem illogical but it seem to be the standard? Especially as the…
valoh
  • 393
  • 1
  • 5
  • 6
8
votes
1 answer

How to create a Capture dynamically (Raku)

In the following example I try to create a Capture dynamically by "converting" an array (@a) to a Capture. Consider the code: sub f (|c){ say ''; say ' List : ' ~ do {c.list.gist if c.list.elems > 0}; say ' Hash : ' ~ do {c.hash.gist…
jakar
  • 1,701
  • 5
  • 14
8
votes
2 answers

Compile/Save/Export HTML as a PNG Image using Jquery

I have a set-up with multiple variables that users can alter that effect a visual representation of an element. All of this is controlled by jquery scripts. It would be cool if there was a way to save the resultant image as per what the browser…
C_K
  • 1,243
  • 4
  • 18
  • 29
8
votes
5 answers

Capture real-time screen video from iPhone and iPad including audio and post to YouTube, Facebook, etc

Does anyone have pointers to some working code or techniques for capturing the full-screen real-time OpenGL graphics on the iPhone and iPad, combine it with the audio coming out of the device, and compile it into a video to post online? For…
snibbe
  • 2,715
  • 1
  • 27
  • 34