w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories

Screen capture delay due to writing data in the file


I think it is not possible as pointed by mah as well.

The code below will help you keep the app responsive while you are writing the image in memory.

This is because the UI/main thread is busy in writing the captured screenshot in memory. So the easiest way to solve this issue is AsyncTask.

public CaptureScreenShot extends
Activity
{
  ArrayList<bitmap> arrayListImage;
  int i=0;

  public void captureScreenshot()
  {
     i++;

     // store the image in arrayList "image"

     new BackgroudClass.execute();
  }

 private class BackgroudClass extends
AsyncTask<Void, Void, Void> 
 {
     @Override
     protected Void doInBackgroud(Void.. params)
     {
        // write the image from arrayList at
imageArrayList.get(i);
     }
 }


@Override 
public onStop()
{
    arrayListImage = null; // making it eligible
for GC
}

Hope this helps.


Categories : Android

Related to : Screen capture delay due to writing data in the file
ffmpeg screen capture using screen-capture-recorder cmd not working in vb
This is my code Dim sAppPath As String Dim sCommand As String Dim sFilePath As String sCommand = AppSettings.Get("command") sFilePath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) 'Full HD sAppPath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "converterinffmpeg.exe " & sCommand & " " & sFi

Categories : Vb.Net
Capture the screen image without screen capture spamming
like LogMeIn does or Join.Me in Java Don't know what those applications do. Maybe Screen Image will do what you want. You can get an image of the desktop or any component in your Java application.

Categories : Java
windows service screen capture returns black screen
Services run in Session 0, which has a different Window Station and Desktop assignment to other sessions where users interact with the system through their visible desktops. You'll probably want to have your service switch to an active users' session to establish a link to their visible desktop in order to create a snapshot of it - your screenshot code is working as-is, but is taking a snapshot i

Categories : C#
Im using this screen capture code to take a screenshot of the screen but sometimes it's returning null why?
If you want to know WHY an exception occurred, I suggest you handle whatever exception you find in your catch. so instead of catch { result = null; } try catch (Exception ex) { // log the value of ex.ToString() to a file, the screen, something. System.IO.File.AppendAllText("debug.log",ex.ToString()); result = null; }

Categories : C#
Screen-capture like DOM-capture with javascript?
As circle73 said, you can use HTML5 to do this via canvas, however, I don't think that would track the mouse position. You could write a JavaScript function to track the mouse coords every x seconds, you'd just have to time it with the screen captures so you can match up the mouse movements with the captured frames. Your other options would be to do this via an ActiveX control as answered here: T

Categories : Javascript
© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.