Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1019963 // dm_waitForWebCamImage

JavaX fragment (include)

static BufferedImage dm_waitForWebCamImage(double seconds) {
  long time = sysNow();
  while (elapsedTime(time) < toMS(seconds)) {
    BufferedImage img = dm_webCamImage();
    if (img != null) ret img;
    sleep(50);
  }
  null;
}

Author comment

Began life as a copy of #1019052

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019963
Snippet name: dm_waitForWebCamImage
Eternal ID of this version: #1019963/1
Text MD5: 0b7dfc188e2ed9bf12ab26b850eb1aee
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-02 02:13:04
Source code size: 239 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 282 / 312
Referenced in: [show references]