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
18
votes
3 answers

HTML Audio recording until silence?

I'm looking for a browser-based way of recording until a silence occurs. HTML audio recording from the microphone is possible in Firefox and Chrome - using Recordmp3js…
GavinBrelstaff
  • 3,016
  • 2
  • 21
  • 39
17
votes
6 answers

How to capture Shell command output in C#?

Summary: query registry on remote machine capture output to use in application needs to be in csharp so far all methods used can only query on the local machine any hope is greatly appreciated Full issue: I need to find a way to run a commandline…
toosweetnitemare
  • 2,226
  • 8
  • 33
  • 44
17
votes
2 answers

Programmatically take a screenshot from service

it is easy to this code Bitmap bitmap; View v1 = MyView.getRootView(); v1.setDrawingCacheEnabled(true); bitmap = Bitmap.createBitmap(v1.getDrawingCache()); v1.setDrawingCacheEnabled(false); and it works great , but this is the case if there is…
Lukap
  • 31,523
  • 64
  • 157
  • 244
16
votes
1 answer

how to capture a block in a helper's child class?

I'm trying to do the following: module ApplicationHelper class PModuleHelper include ActionView::Helpers::TagHelper def heading(head = "", &block) content = block_given? ? capture(&block) : head.to_s content_tag :h3,…
Markus
  • 5,667
  • 4
  • 48
  • 64
16
votes
3 answers

.NET Equivalent of Snipping Tool

I'm looking for .NET code which performs the same as Snipping Tool - capturing a screen area. I believe it uses hooks. Would be interesting to know how does it highlight the selected fragment. Update: Found…
SharpAffair
  • 5,558
  • 13
  • 78
  • 158
15
votes
11 answers

How to take a screen shot of a web page?

I want to add a button to one of our web sites that will allow the user to file a bug with our bug tracking system. One of the feature requests is that a screen cap of the page in question be sent along. Without installing something on the end users…
NotMe
  • 87,343
  • 27
  • 171
  • 245
15
votes
2 answers

How to capture a custom image size with the camera in android?

How to capture an square image in android? I want to capture an square image (such as 300x300 pixel) by calling Camera through intent in android, how can I do this?
Nguyen Minh Binh
  • 23,891
  • 30
  • 115
  • 165
15
votes
1 answer

using out of scope variables in C++11 lambda expressions

I'm playing with C++11 for fun. I'm wondering why this happens: //... std::vector agents; P_CommunicationProtocol requestPacket; //... bool repeated = std::any_of(agents.begin(), agents.end(), [](P_EndPoint i)->bool …
sorush-r
  • 10,490
  • 17
  • 89
  • 173
15
votes
3 answers

C# capturing image from webcam

Last two days I've been looking for a way to capture an image from the webcam using C#. I'm pretty new in c# and I DO NOT want to use external third party libs, so I found two nice ways, but both seems to return almost the same error. I couldn't get…
Viktor Kirilov
  • 335
  • 2
  • 3
  • 6
14
votes
1 answer

Correct placement of capture list in nested closures in swift

Where do I define captured references for nested closures in Swift? Take this code as an example: import Foundation class ExampleDataSource { var content: Any? func loadContent() { ContentLoader.loadContentFromSource() { [weak self]…
Brandon Nott
  • 536
  • 2
  • 15
13
votes
2 answers

Using Named Captures with regex match in Ruby's case...when?

I want to parse user input using named captures for readability. When they type a command I want to capture some params and pass them. I'm using RegExps in a case statement and thus I can't assign the return of /pattern/.named_captures. Here is what…
Chris
  • 11,819
  • 19
  • 91
  • 145
13
votes
3 answers

How can I capture audio AND video simultenaous with ffmpeg from a linux USB capture device

I'm capturing a video by means of an USB Terratec Grabster AV350 (which is based on the em2860 chip). I don't succeed to get the audio when it is played . If I play the captured video with vlc or with ffplay I got only 3 seconds sound and then a…
oban
  • 141
  • 1
  • 1
  • 4
13
votes
3 answers

android: video capturing on device or emulator

is it possible to capture what's going on in an android screen as video, either on the device itself or the emulator? thanks!
clamp
  • 33,000
  • 75
  • 203
  • 299
13
votes
1 answer

Capturing a Lambda's static in a Nested Lambda

In this answer I use this code: std::vector> imat(3, std::vector(10)); std::for_each(imat.begin(), imat.end(), [&](auto& i) { static auto row = 0; auto column = 0; std::transform(i.begin(), i.end(), i.begin(), …
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
13
votes
4 answers

Android - capture screen of phone as a movie

for the documentation of a project I would like to record the screen of my Nexus One as a movie or at least in form of a lot of images, which I can convert into a movie. Is that possible? Is there an app for it? For the moment I only know about this…
Nils
  • 1,705
  • 6
  • 23
  • 32
1 2
3
97 98